diff options
author | Sverker Eriksson <[email protected]> | 2015-04-15 16:55:55 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2015-04-15 17:01:20 +0200 |
commit | 8846021fe1b1bcf79ec3a01037a8a656e161766c (patch) | |
tree | fce7b801da0daf9fcb3233e62111273572bc08c1 /erts/emulator/beam/erl_nif.c | |
parent | f0cfce64b6a061ffeafeda254734f0b1f2f452fd (diff) | |
download | otp-8846021fe1b1bcf79ec3a01037a8a656e161766c.tar.gz otp-8846021fe1b1bcf79ec3a01037a8a656e161766c.tar.bz2 otp-8846021fe1b1bcf79ec3a01037a8a656e161766c.zip |
erts: Fix isfinite for windows
Add macro erts_isfinite as an OS independent way to check
if a float is finite.
Diffstat (limited to 'erts/emulator/beam/erl_nif.c')
-rw-r--r-- | erts/emulator/beam/erl_nif.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/erl_nif.c b/erts/emulator/beam/erl_nif.c index ec82ef251e..8b6cb880a3 100644 --- a/erts/emulator/beam/erl_nif.c +++ b/erts/emulator/beam/erl_nif.c @@ -967,7 +967,7 @@ ERL_NIF_TERM enif_make_uint64(ErlNifEnv* env, ErlNifUInt64 i) ERL_NIF_TERM enif_make_double(ErlNifEnv* env, double d) { Eterm* hp; - if (!isfinite(d)) + if (!erts_isfinite(d)) return enif_make_badarg(env); hp = alloc_heap(env,FLOAT_SIZE_OBJECT); FloatDef f; |