pike.git/
src/
operators.c
Branch:
Tag:
Non-build tags
All tags
No tags
2016-01-10
2016-01-10 21:37:17 by Martin Nilsson <nilsson@fastmail.com>
10b43e4e29b4d46b448904f2a11d98b3af778da6 (
10
lines) (+
2
/-
8
)
[
Show
|
Annotate
]
Branch:
8.1
Hide the different versions of isinf in PIKE_ISINF properly.
259:
case T_FLOAT: { FLOAT_TYPE f = sp[-1].u.float_number;
-
if (
-
#ifdef
HAVE
_ISINF
-
isinf
(f) ||
-
#endif
-
#ifdef
HAVE
_ISNAN
-
isnan
(f)
||
-
#endif
-
0
)
+
if (
PIKE
_ISINF(f) ||
PIKE
_ISNAN(f) )
Pike_error("Can't cast infinites or NaN to int.\n"); if (UNLIKELY(f > MAX_INT_TYPE || f < MIN_INT_TYPE)) {