Remove potential platform portability issue with size of "int".

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19172 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer 2004-12-29 01:20:24 +00:00
parent 775bf890e1
commit 56127624e7
2 changed files with 6 additions and 2 deletions

View File

@ -190,7 +190,9 @@ Archive::parseMemberHeader(const char*& At, const char* End) {
member->path.setFile(pathname);
member->info.fileSize = MemberSize;
member->info.modTime.fromEpochTime(atoi(Hdr->date));
sscanf(Hdr->mode, "%o", &(member->info.mode));
unsigned int mode;
sscanf(Hdr->mode, "%o", &mode);
member->info.mode = mode;
member->info.user = atoi(Hdr->uid);
member->info.group = atoi(Hdr->gid);
member->flags = flags;

View File

@ -190,7 +190,9 @@ Archive::parseMemberHeader(const char*& At, const char* End) {
member->path.setFile(pathname);
member->info.fileSize = MemberSize;
member->info.modTime.fromEpochTime(atoi(Hdr->date));
sscanf(Hdr->mode, "%o", &(member->info.mode));
unsigned int mode;
sscanf(Hdr->mode, "%o", &mode);
member->info.mode = mode;
member->info.user = atoi(Hdr->uid);
member->info.group = atoi(Hdr->gid);
member->flags = flags;