diff --git a/libft/includes/ft_test.h b/libft/includes/ft_test.h index 24d39c7..f3289ea 100644 --- a/libft/includes/ft_test.h +++ b/libft/includes/ft_test.h @@ -131,10 +131,10 @@ extern tests_tracker test_tracker; " is " C_BOLD C_RED "equal" C_RESET); #define assert_string_equal(a, b) \ - if (!a) \ + if ((uintptr_t)NULL == (uintptr_t)a) \ fail("Assertion failed: " C_BOLD "assert_string_equal(" #a ", " #b ") " C_RESET #a \ " is " C_BOLD C_RED "null" C_RESET); \ - else if (!b) \ + else if ((uintptr_t)NULL == (uintptr_t)n) \ fail("Assertion failed: " C_BOLD "assert_string_equal(" #a ", " #b ") " C_RESET #b \ " is " C_BOLD C_RED "null" C_RESET); \ else if (ft_strcmp(a, b) == 0) \