We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e63f5b commit 266ea26Copy full SHA for 266ea26
src/utils.c
@@ -4,6 +4,7 @@ bool within_int32_repres(double x) {
4
// N.B. (int)2147483647.99 is not undefined behaviour since s 6.3.1.4 of the C
5
// standard states that behaviour is undefined only if the integral part of a
6
// finite value of standard floating type cannot be represented.
7
+ // Also, note that these are not the same values you would get from INT32_MAX and INT32_MIN
8
return R_FINITE(x) && x < 2147483648 && x > -2147483648;
9
}
10
0 commit comments