diff --git a/lib/printf_test.c b/lib/printf_test.c index 88ecf05e..3b26ec17 100644 --- a/lib/printf_test.c +++ b/lib/printf_test.c @@ -108,11 +108,11 @@ static int t_bstrcmp(void) { bt_assert(bstrcmp("aa", "aa") == 0); - bt_assert(bstrcmp("aa", "bb") == -1); - bt_assert(bstrcmp("bb", "aa") == 1); + bt_assert(bstrcmp("aa", "bb") < 0); + bt_assert(bstrcmp("bb", "aa") > 0); bt_assert(bstrcmp(NULL, NULL) == 0); - bt_assert(bstrcmp(NULL, "bb") == -1); - bt_assert(bstrcmp("bb", NULL) == 1); + bt_assert(bstrcmp(NULL, "bb") < 0); + bt_assert(bstrcmp("bb", NULL) > 0); return 1; }