Skip to content

Commit

Permalink
FIX: clang warning: implicit conversion from 'long long' to 'double' …
Browse files Browse the repository at this point in the history
…changes value from 9223372036854775807 to 9223372036854775808
  • Loading branch information
Oldes committed Jan 14, 2023
1 parent e347ad0 commit 287398b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/f-stubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,9 @@
REBI64 n;

if (IS_DECIMAL(val)) {
if (VAL_DECIMAL(val) > MAX_I64 || VAL_DECIMAL(val) < MIN_I64)
Trap_Range(val);
n = (REBI64)VAL_DECIMAL(val);
if (n > MAX_I64 || n < MIN_I64)
Trap_Range(val);
} else {
n = VAL_INT64(val);
}
Expand Down

0 comments on commit 287398b

Please sign in to comment.