mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +00:00
tests: fixing error on windows (mingw-64)
Error while comparing a pointer and an integer. Solved by using a null pointer const instead of the NULL macro. @Issue: https://github.com/thorvg/thorvg/issues/1382
This commit is contained in:
parent
ffbdc6990c
commit
f82b16285a
2 changed files with 2 additions and 2 deletions
|
@ -162,7 +162,7 @@ TEST_CASE("Linear Gradient clear data", "[capiLinearGradient]")
|
|||
|
||||
REQUIRE(tvg_gradient_set_color_stops(gradient, NULL, 0) == TVG_RESULT_SUCCESS);
|
||||
REQUIRE(tvg_gradient_get_color_stops(gradient, &color_stops_ret, &color_stops_count_ret) == TVG_RESULT_SUCCESS);
|
||||
REQUIRE(color_stops_ret == NULL);
|
||||
REQUIRE(color_stops_ret == nullptr);
|
||||
REQUIRE(color_stops_count_ret == 0);
|
||||
|
||||
REQUIRE(tvg_gradient_del(gradient) == TVG_RESULT_SUCCESS);
|
||||
|
|
|
@ -117,7 +117,7 @@ TEST_CASE("Clear gradient data", "[capiRadialGradient]")
|
|||
|
||||
REQUIRE(tvg_gradient_set_color_stops(gradient, NULL, 0) == TVG_RESULT_SUCCESS);
|
||||
REQUIRE(tvg_gradient_get_color_stops(gradient, &color_stops_ret, &color_stops_count_ret) == TVG_RESULT_SUCCESS);
|
||||
REQUIRE(color_stops_ret == NULL);
|
||||
REQUIRE(color_stops_ret == nullptr);
|
||||
REQUIRE(color_stops_count_ret == 0);
|
||||
|
||||
REQUIRE(tvg_gradient_del(gradient) == TVG_RESULT_SUCCESS);
|
||||
|
|
Loading…
Add table
Reference in a new issue