Skip to content

Commit

Permalink
Fix warning for int constant.
Browse files Browse the repository at this point in the history
  • Loading branch information
supurloop committed Oct 9, 2024
1 parent f7ec65f commit 4b718a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _codec/ssfgobj_ut.c
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 4b718a4

Please sign in to comment.