Skip to content

Commit 74afe1f

Browse files
committed
Fix windows build
1 parent 5996a96 commit 74afe1f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎apps/unit_tests/cast_helpers_unit_tests.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,9 @@ test_safe_cast_ulong_to_int(void) {
368368

369369
static void
370370
test_safe_cast_long_to_int(void) {
371+
#if (LONG_MIN < INT_MIN) || (LONG_MAX > INT_MAX)
371372
long src;
373+
#endif /* (LONG_MIN < INT_MIN) || (LONG_MAX > INT_MAX) */
372374
int dst = 0;
373375
int ret;
374376

0 commit comments

Comments
 (0)