mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
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:
parent
775bf890e1
commit
56127624e7
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user