From 4b718a40edf5435274ffa4bfaee3217f85fab16f Mon Sep 17 00:00:00 2001 From: Jim Higgins Date: Wed, 9 Oct 2024 15:27:29 -0400 Subject: [PATCH] Fix warning for int constant. --- _codec/ssfgobj_ut.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_codec/ssfgobj_ut.c b/_codec/ssfgobj_ut.c index 501d1d9..088ef1f 100644 --- a/_codec/ssfgobj_ut.c +++ b/_codec/ssfgobj_ut.c @@ -235,12 +235,12 @@ void SSFGObjUnitTest(void) SSF_ASSERT(SSFGObjGetSize(gobj) == sizeof(int64_t)); SSF_ASSERT(i64 == 9223372036854775807ull); - SSF_ASSERT(SSFGObjSetInt(gobj, (int64_t)-9223372036854775808ll)); + SSF_ASSERT(SSFGObjSetInt(gobj, (int64_t)(-9223372036854775807ll))); i64 = 0; SSF_ASSERT(SSFGObjGetInt(gobj, &i64)); SSF_ASSERT(SSFGObjGetType(gobj) == SSF_OBJ_TYPE_INT); SSF_ASSERT(SSFGObjGetSize(gobj) == sizeof(int64_t)); - SSF_ASSERT(i64 == (int64_t)-9223372036854775808ll); + SSF_ASSERT(i64 == (int64_t)(-9223372036854775807ll)); SSFGObjDeInit(&gobj); SSF_ASSERT(SSFGObjIsMemoryBalanced());