test/c_lib: Don't fail to compile tests with 32-bit time_t

The native library may use a 32-bit time_t, so we need to avoid
having the compiler generate an error during compilation.

Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
Keith Packard 2023-10-13 17:26:27 -07:00 committed by Chris Friedt
parent dfd584204c
commit e4681a0634

View file

@ -1067,7 +1067,7 @@ ZTEST(test_c_lib, test_time)
{
time_t tests1 = 0;
time_t tests2 = -5;
time_t tests3 = -214748364800;
time_t tests3 = (time_t) -214748364800;
time_t tests4 = 951868800;
struct tm tp;