summaryrefslogtreecommitdiff
path: root/test_bits.c
diff options
context:
space:
mode:
authorMichael Tatarinov <kukabu@gmail.com>2013-02-18 11:42:56 +0400
committerEric S. Raymond <esr@thyrsus.com>2013-02-18 02:45:09 -0500
commitb5c2841005816d1521064daa4ea03c1c8ce7c298 (patch)
tree243cea206bb86369afd61e0315899e7abb8b8174 /test_bits.c
parent5ec399ba397aced9d324c06a8156314dc05b2a6e (diff)
downloadgpsd-b5c2841005816d1521064daa4ea03c1c8ce7c298.tar.gz
The signed/unsigned char fix.
All regression tests pass on Raspbian “wheezy”. Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
Diffstat (limited to 'test_bits.c')
-rw-r--r--test_bits.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test_bits.c b/test_bits.c
index b37a4d6c..6d7d4119 100644
--- a/test_bits.c
+++ b/test_bits.c
@@ -207,7 +207,7 @@ int main(int argc, char *argv[])
up <
unsigned_tests + sizeof(unsigned_tests) / sizeof(unsigned_tests[0]);
up++) {
- uint64_t res = ubits((char *)buf, up->start, up->width, up->le);
+ uint64_t res = ubits((unsigned char *)buf, up->start, up->width, up->le);
bool success = (res == up->expected);
if (!success)
failures = true;