diff options
Diffstat (limited to 'lib/System/Path.cpp')
-rw-r--r-- | lib/System/Path.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/System/Path.cpp b/lib/System/Path.cpp index 4c965db722..72bd7ad6f0 100644 --- a/lib/System/Path.cpp +++ b/lib/System/Path.cpp @@ -55,7 +55,7 @@ LLVMFileType sys::IdentifyFileType(const char *magic, unsigned length) { assert(magic && "Invalid magic number string"); assert(length >=4 && "Invalid magic number length"); - switch (magic[0]) { + switch ((unsigned char)magic[0]) { case 0xDE: // 0x0B17C0DE = BC wraper if (magic[1] == (char)0xC0 && magic[2] == (char)0x17 && magic[3] == (char)0x0B) |