[llvm-branch-commits] [cfe-branch] r84929 - /cfe/branches/Apple/Dib/lib/Frontend/PCHReader.cpp

Ted Kremenek kremenek at apple.com
Thu Oct 22 21:09:14 PDT 2009


Author: kremenek
Date: Thu Oct 22 23:09:14 2009
New Revision: 84929

URL: http://llvm.org/viewvc/llvm-project?rev=84929&view=rev
Log:
Merge in r84925.

Modified:
    cfe/branches/Apple/Dib/lib/Frontend/PCHReader.cpp

Modified: cfe/branches/Apple/Dib/lib/Frontend/PCHReader.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/Apple/Dib/lib/Frontend/PCHReader.cpp?rev=84929&r1=84928&r2=84929&view=diff

==============================================================================
--- cfe/branches/Apple/Dib/lib/Frontend/PCHReader.cpp (original)
+++ cfe/branches/Apple/Dib/lib/Frontend/PCHReader.cpp Thu Oct 22 23:09:14 2009
@@ -2068,7 +2068,7 @@
     // All of the strings in the PCH file are preceded by a 16-bit
     // length. Extract that 16-bit length to avoid having to execute
     // strlen().
-    const char *StrLenPtr = Str - 2;
+    const unsigned char *StrLenPtr = (const unsigned char*) Str - 2;
     unsigned StrLen = (((unsigned) StrLenPtr[0])
                        | (((unsigned) StrLenPtr[1]) << 8)) - 1;
     IdentifiersLoaded[ID - 1] 





More information about the llvm-branch-commits mailing list