summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2016-04-03 16:06:57 +0300
committerTimo Teräs <timo.teras@iki.fi>2016-04-03 16:06:57 +0300
commit9039dbe06cfe123d04c3306f7316ba91013fc5e6 (patch)
tree421581f6d8749169bff271a8236189e442cfda81
parenta2a5cd9c696d0d6f2c14b8831e62caf24d16fa50 (diff)
downloadapk-tools-9039dbe06cfe123d04c3306f7316ba91013fc5e6.tar.bz2
apk-tools-9039dbe06cfe123d04c3306f7316ba91013fc5e6.tar.xz
blob: fix sign extension in test_bit
-rw-r--r--src/blob.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blob.c b/src/blob.c
index 9147afa..4bedfbc 100644
--- a/src/blob.c
+++ b/src/blob.c
@@ -116,7 +116,7 @@ int apk_blob_cspn(apk_blob_t blob, const apk_spn_match reject, apk_blob_t *l, ap
return 1;
}
#else
-static int inline test_bit(const unsigned char *array, unsigned bit)
+static int inline test_bit(const unsigned char *array, unsigned char bit)
{
return array[bit >> 3] & (1 << (bit & 7));
}