From 0e31b8fc1e9a929d1373baa41c04a96aa376b326 Mon Sep 17 00:00:00 2001 From: Florian Stinglmayr Date: Fri, 23 Mar 2018 18:02:12 +0100 Subject: [PATCH] fix pointer issues in unit test --- tests/test_dice_fudge.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/test_dice_fudge.c b/tests/test_dice_fudge.c index 87efaee..c8872d7 100644 --- a/tests/test_dice_fudge.c +++ b/tests/test_dice_fudge.c @@ -28,7 +28,7 @@ static void test_dice_fudge_construct(void **data) { dice_t d = dice_new(); - bool fudge = true; + uint32_t fudge = true; dice_get(d, DICEOPTION_FUDGE, &fudge); assert_false(fudge); @@ -39,9 +39,9 @@ static void test_dice_fudge_construct(void **data) static void test_dice_fudge_set(void **data) { dice_t d = dice_new(); - bool fudge = false; + uint32_t fudge = false; - dice_set(d, DICEOPTION_FUDGE, true); + dice_set(d, DICEOPTION_FUDGE, 1L); dice_get(d, DICEOPTION_FUDGE, &fudge); assert_true(fudge); @@ -83,7 +83,7 @@ static void test_dice_fudge_roll_more(void **data) static void test_dice_fudge_parse1(void **data) { dice_t d = dice_new(); - int amount = 0, fudge = false; + uint32_t amount = 0, fudge = false; assert_true(dice_parse(d, "4dF")); @@ -99,7 +99,7 @@ static void test_dice_fudge_parse1(void **data) static void test_dice_fudge_parse2(void **data) { dice_t d = dice_new(); - int amount = 0, fudge = false; + uint32_t amount = 0, fudge = false; assert_true(dice_parse(d, "df"));