Skip to content

Commit 7b2699b

Browse files
committed
fix arrow crash with nan
1 parent 4157428 commit 7b2699b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

big-num/omeganum.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1102,7 +1102,7 @@ function Big:arrow(arrows, other)
11021102
if (self:gt(limit)) then
11031103
r = self:clone()
11041104
local w = bigs[r]
1105-
w[arrows + 1] = w[arrows + 1] - 1
1105+
w[arrows + 1] = (w[arrows + 1] or 0) - 1
11061106
if arrows < 25000 then --arbitrary, normalisation is just extra steps when you get high enough
11071107
r:normalize()
11081108
end

0 commit comments

Comments
 (0)