mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-24 04:09:45 +00:00
silence a warning, patch by "mike".
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102297 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d89673c028
commit
73382423f2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user