summaryrefslogtreecommitdiff
path: root/libarchive/archive_check_magic.c
diff options
context:
space:
mode:
authorTim Kientzle <kientzle@gmail.com>2009-09-13 03:05:56 -0400
committerTim Kientzle <kientzle@gmail.com>2009-09-13 03:05:56 -0400
commite44c5d7f15b3f3927b84aa4e56a0ff8c0f5c895f (patch)
tree2f2d875c0f98f5c03dc96ea553755e403d985f3c /libarchive/archive_check_magic.c
parent454f37f78be5f3bcad492a453fccc3a6fd3c9d92 (diff)
downloadlibarchive-e44c5d7f15b3f3927b84aa4e56a0ff8c0f5c895f.tar.gz
Fix some compiler warnings in VS9.
SVN-Revision: 1457
Diffstat (limited to 'libarchive/archive_check_magic.c')
-rw-r--r--libarchive/archive_check_magic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libarchive/archive_check_magic.c b/libarchive/archive_check_magic.c
index b94448f5..1d4c3a6e 100644
--- a/libarchive/archive_check_magic.c
+++ b/libarchive/archive_check_magic.c
@@ -94,7 +94,7 @@ write_all_states(unsigned int states)
unsigned int lowbit;
/* A trick for computing the lowest set bit. */
- while ((lowbit = states & (-states)) != 0) {
+ while ((lowbit = states & (1 + ~states)) != 0) {
states &= ~lowbit; /* Clear the low bit. */
errmsg(state_name(lowbit));
if (states != 0)