use proper type in unit tests

This commit is contained in:
Florian Stinglmayr 2018-03-23 18:37:04 +01:00
parent fbd37c90a4
commit 85810123a2

View File

@ -51,7 +51,7 @@ static void test_dice_fudge_set(void **data)
static void test_dice_fudge_roll_one(void **data)
{
dice_t d = dice_new();
int result = 0, i = 0;
int64_t result = 0, i = 0;
dice_set(d, DICEOPTION_FUDGE, true);
dice_set(d, DICEOPTION_AMOUNT, 1L);
@ -67,7 +67,7 @@ static void test_dice_fudge_roll_one(void **data)
static void test_dice_fudge_roll_more(void **data)
{
dice_t d = dice_new();
int result = 0, i = 0;
int64_t result = 0, i = 0;
dice_set(d, DICEOPTION_FUDGE, true);
dice_set(d, DICEOPTION_AMOUNT, 6L);