From 0ff08971aa00ab5ad5776d113106dbe517ad91ea Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Sun, 24 Sep 2023 20:39:36 +0200 Subject: [PATCH] tests: cast infolist time variable value to the correct data type --- tests/unit/core/test-core-infolist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/core/test-core-infolist.cpp b/tests/unit/core/test-core-infolist.cpp index b8e827eb0..94214bfee 100644 --- a/tests/unit/core/test-core-infolist.cpp +++ b/tests/unit/core/test-core-infolist.cpp @@ -222,7 +222,7 @@ TEST(CoreInfolist, New) /* check content of variable */ STRCMP_EQUAL("test_time", var_time->name); LONGS_EQUAL(INFOLIST_TIME, var_time->type); - LONGS_EQUAL(1234567890, *((int *)var_time->value)); + LONGS_EQUAL(1234567890, *((time_t *)var_time->value)); LONGS_EQUAL(0, var_time->size); POINTERS_EQUAL(var_buf, var_time->prev_var); POINTERS_EQUAL(NULL, var_time->next_var);