Skip to content

Commit

Permalink
silence a warning, patch by "mike".
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102297 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
lattner committed Apr 25, 2010
1 parent d89673c commit 7338242
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Archive/ArchiveReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ Archive::parseMemberHeader(const char*& At, const char* End, std::string* error)
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;
Expand Down

0 comments on commit 7338242

Please sign in to comment.