File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 248248
249249--- @param other t.Omega.Parsable
250250function Big :compareTo (other )
251+ if not is_number (self ) then self = Big :ensureBig (self ) end
252+ if not is_number (other ) then other = Big :ensureBig (other ) end
253+
251254 if not Big .is (self ) then
252255 if not Big .is (other ) then
253256 return signcomp (self , other )
@@ -934,10 +937,10 @@ function Big:max_for_op(arrows)
934937 local arr = {}
935938 arr [1 ] = 10e9
936939 arr [arrows ] = R .MAX_SAFE_INTEGER - 2
937- for i = 2 , math.min (arrows - 1 , 1e6 ) do
940+ for i = 2 , math.min (arrows - 1 , 1e2 ) do
938941 arr [i ] = 8
939942 end
940- if arrows > 1e6 then
943+ if arrows > 1e2 then
941944 local limit = math.floor (math.log (arrows , 10 ))
942945 for i = 6 , limit do
943946 arr [10 ^ i ] = 8
Original file line number Diff line number Diff line change 11--- @meta
22
33BigC = copy_table (require (' big-num.constants' ))
4+ local type = type
45
56function is_big (x )
67 return Big and Big .is (x )
You can’t perform that action at this time.
0 commit comments