diff options
author | Jeff Cohen <jeffc@jolt-lang.org> | 2004-12-20 03:23:46 +0000 |
---|---|---|
committer | Jeff Cohen <jeffc@jolt-lang.org> | 2004-12-20 03:23:46 +0000 |
commit | e1337210475d13ed44eb3c9e4dceaf0781e126f4 (patch) | |
tree | 08283ed1baf9033a2fb544228846bae8c8c5bef7 /lib/Archive | |
parent | 721d9aa06043bf59efe17443cdee418982bd55ac (diff) | |
download | external_llvm-e1337210475d13ed44eb3c9e4dceaf0781e126f4.zip external_llvm-e1337210475d13ed44eb3c9e4dceaf0781e126f4.tar.gz external_llvm-e1337210475d13ed44eb3c9e4dceaf0781e126f4.tar.bz2 |
Fix problems uncovered by VC++ (first time compiled by VC++)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19056 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Archive')
-rw-r--r-- | lib/Archive/ArchiveReader.cpp | 1 | ||||
-rw-r--r-- | lib/Archive/ArchiveWriter.cpp | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/Archive/ArchiveReader.cpp b/lib/Archive/ArchiveReader.cpp index d4a4921..28327df 100644 --- a/lib/Archive/ArchiveReader.cpp +++ b/lib/Archive/ArchiveReader.cpp @@ -90,7 +90,6 @@ Archive::parseMemberHeader(const char*& At, const char* End) { // a '/' and blanks. std::string pathname; - unsigned index; switch (Hdr->name[0]) { case '#': if (Hdr->name[1] == '1' && Hdr->name[2] == '/') { diff --git a/lib/Archive/ArchiveWriter.cpp b/lib/Archive/ArchiveWriter.cpp index 58e7853..5c7b126 100644 --- a/lib/Archive/ArchiveWriter.cpp +++ b/lib/Archive/ArchiveWriter.cpp @@ -293,7 +293,7 @@ Archive::writeMember( ARFile.write(data,fSize); // Make sure the member is an even length - if (ARFile.tellp() & 1 == 1) + if ((ARFile.tellp() & 1) == 1) ARFile << ARFILE_PAD; // Free the compressed data, if necessary |