[llvm-commits] CVS: llvm/lib/Bytecode/Archive/ArchiveReader.cpp
Reid Spencer
reid at x10sys.com
Tue Dec 28 17:20:35 PST 2004
Changes in directory llvm/lib/Bytecode/Archive:
ArchiveReader.cpp updated: 1.37 -> 1.38
---
Log message:
Remove potential platform portability issue with size of "int".
---
Diffs of the changes: (+3 -1)
Index: llvm/lib/Bytecode/Archive/ArchiveReader.cpp
diff -u llvm/lib/Bytecode/Archive/ArchiveReader.cpp:1.37 llvm/lib/Bytecode/Archive/ArchiveReader.cpp:1.38
--- llvm/lib/Bytecode/Archive/ArchiveReader.cpp:1.37 Sun Dec 19 21:23:46 2004
+++ llvm/lib/Bytecode/Archive/ArchiveReader.cpp Tue Dec 28 19:20:24 2004
@@ -190,7 +190,9 @@
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;
More information about the llvm-commits
mailing list