Skip to content

Commit

Permalink
Wrong use of unsigned integer.
Browse files Browse the repository at this point in the history
  • Loading branch information
hugbubby committed Jul 16, 2018
1 parent f5f20d9 commit 9c78536
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auto_tests/dht_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ END_TEST

static void dht_pack_unpack(const Node_format *nodes, size_t size, uint8_t *data, size_t length)
{
uint16_t packed_size = pack_nodes(data, length, nodes, size);
int16_t packed_size = pack_nodes(data, length, nodes, size);
ck_assert_msg(packed_size != -1, "Wrong pack_nodes result");

uint16_t processed = 0;
Expand Down

0 comments on commit 9c78536

Please sign in to comment.