summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLars Mueller <appgurulars@gmx.de>2020-12-24 14:48:05 +0100
committersfan5 <sfan5@live.de>2020-12-24 22:07:04 +0100
commit8f72d4b2940f0bd5486e38bd58127d14a1762be8 (patch)
tree65fa352af8f0225430a599423df5ed9dbaa5cb1e /builtin
parent74762470b2aa11a5271b846549ff14b86c1705d2 (diff)
downloadminetest-8f72d4b2940f0bd5486e38bd58127d14a1762be8.tar.gz
minetest-8f72d4b2940f0bd5486e38bd58127d14a1762be8.tar.bz2
minetest-8f72d4b2940f0bd5486e38bd58127d14a1762be8.zip
Fix minetest.is_nan
Diffstat (limited to 'builtin')
-rw-r--r--builtin/common/misc_helpers.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/builtin/common/misc_helpers.lua b/builtin/common/misc_helpers.lua
index e29a9f422..0f3897f47 100644
--- a/builtin/common/misc_helpers.lua
+++ b/builtin/common/misc_helpers.lua
@@ -697,3 +697,7 @@ function core.privs_to_string(privs, delim)
end
return table.concat(list, delim)
end
+
+function core.is_nan(number)
+ return number ~= number
+end