1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

tests: cast infolist time variable value to the correct data type

This commit is contained in:
LuK1337
2023-09-24 20:39:36 +02:00
committed by Sébastien Helleu
parent 19bb049325
commit 0ff08971aa
+1 -1
View File
@@ -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);