diff options
| -rw-r--r-- | xmake/core/base/math.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/base/math.lua b/xmake/core/base/math.lua index 82dbdeb38..ce2e1c8b1 100644 --- a/xmake/core/base/math.lua +++ b/xmake/core/base/math.lua @@ -22,7 +22,7 @@ local math = math or {} -- init constants -math.nan = math.log(-1) +math.nan = 0/0 -- use 0/0 instead of math.log(-1) for better cross-platform compatibility (e.g., Solaris) math.e = math.exp(1) math.inf = 1/0 -- @see http://lua-users.org/wiki/InfAndNanComparisons |
