[llvm-commits] [llvm] r102297 - /llvm/trunk/lib/Archive/ArchiveReader.cpp
Chris Lattner
sabre at nondot.org
Sat Apr 24 21:44:27 PDT 2010
Author: lattner
Date: Sat Apr 24 23:44:26 2010
New Revision: 102297
URL: http://llvm.org/viewvc/llvm-project?rev=102297&view=rev
Log:
silence a warning, patch by "mike".
Modified:
llvm/trunk/lib/Archive/ArchiveReader.cpp
Modified: llvm/trunk/lib/Archive/ArchiveReader.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Archive/ArchiveReader.cpp?rev=102297&r1=102296&r2=102297&view=diff
==============================================================================
--- llvm/trunk/lib/Archive/ArchiveReader.cpp (original)
+++ llvm/trunk/lib/Archive/ArchiveReader.cpp Sat Apr 24 23:44:26 2010
@@ -121,7 +121,7 @@
if (isdigit(Hdr->name[3])) {
unsigned len = atoi(&Hdr->name[3]);
const char *nulp = (const char *)memchr(At, '\0', len);
- pathname.assign(At, nulp != 0 ? nulp - At : len);
+ pathname.assign(At, nulp != 0 ? (uintptr_t)(nulp - At) : len);
At += len;
MemberSize -= len;
flags |= ArchiveMember::HasLongFilenameFlag;
More information about the llvm-commits
mailing list