Skip to content

Commit

Permalink
Use %d specifier instead of %zd (%zd is not portable)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wallacoloo committed Aug 23, 2015
1 parent 7e8497b commit d991bba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rtosc/test/bundles.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ int main()
check(!rtosc_bundle_p(buffer_b),
"False positive bundle_p()", __LINE__);
len_c = rtosc_bundle(buffer_c, 256, 0, 2, buffer_a, buffer_b);
printf("len_c => '%zd'\n correct is %d\n", len_c, (int)sizeof(RESULT)-1);
printf("len_c => '%d'\n correct is %d\n", (int)len_c, (int)sizeof(RESULT)-1);
check((len_c = rtosc_bundle(buffer_c, 256, 0, 2, buffer_a, buffer_b)) == sizeof(RESULT)-1,
"bad bundle", __LINE__);
check(rtosc_message_length(buffer_c, len_c) == len_c,
Expand Down

0 comments on commit d991bba

Please sign in to comment.