mirror of
https://github.com/yarrick/iodine.git
synced 2025-08-14 23:07:26 +00:00
Change readshort() to work with unsigned values
This commit is contained in:
@@ -51,7 +51,7 @@ START_TEST(test_read_putshort)
|
||||
i, ntohs(k), i);
|
||||
|
||||
p = (char*)&k;
|
||||
readshort(NULL, &p, (short *) &l);
|
||||
readshort(NULL, &p, &l);
|
||||
fail_unless(l == i,
|
||||
"Bad value on readshort for %d: %d != %d",
|
||||
i, l, i);
|
||||
|
Reference in New Issue
Block a user