diff options
Diffstat (limited to 'lib/Support/Path.cpp')
-rw-r--r-- | lib/Support/Path.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/Path.cpp b/lib/Support/Path.cpp index a4d49dc494..9d8decc28c 100644 --- a/lib/Support/Path.cpp +++ b/lib/Support/Path.cpp @@ -90,7 +90,7 @@ sys::IdentifyFileType(const char *magic, unsigned length) { case 0xCF: { uint16_t type = 0; if (magic[0] == char(0xFE) && magic[1] == char(0xED) && - magic[2] == char(0xFA) && + magic[2] == char(0xFA) && (magic[3] == char(0xCE) || magic[3] == char(0xCF))) { /* Native endian */ if (length >= 16) type = magic[14] << 8 | magic[15]; |