summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLuK1337 <priv.luk@gmail.com>2023-09-24 20:39:36 +0200
committerSébastien Helleu <flashcode@flashtux.org>2023-09-25 13:48:30 +0200
commitb433afbd26958e46e586fccde39b78fcc141e3e8 (patch)
tree91b86416bc6f29050688b92b6591e7df5e67e968 /tests
parent082ccb05bb687fd12032fd45984097b50e83b82c (diff)
downloadweechat-b433afbd26958e46e586fccde39b78fcc141e3e8.zip
tests: cast infolist time variable value to the correct data type
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/core/test-core-infolist.cpp2
1 files changed, 1 insertions, 1 deletions
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);