Fix LLDB ARM build error on ubuntu precise with gcc4.7
authorOmair Javaid <omair.javaid@linaro.org>
Mon, 27 Apr 2015 12:01:59 +0000 (12:01 +0000)
committerOmair Javaid <omair.javaid@linaro.org>
Mon, 27 Apr 2015 12:01:59 +0000 (12:01 +0000)
Differential revision: http://reviews.llvm.org/D9100

llvm-svn: 235865

lldb/source/Host/posix/FileSystem.cpp

index a78c628..813d96b 100644 (file)
@@ -184,7 +184,7 @@ static bool IsLocal(const struct statfs& info)
 {
 #ifdef __linux__
     #define CIFS_MAGIC_NUMBER 0xFF534D42
-    switch (info.f_type)
+    switch ((uint32_t)info.f_type)
     {
     case NFS_SUPER_MAGIC:
     case SMB_SUPER_MAGIC: