File tree 4 files changed +6
-6
lines changed
4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ def lua_neg(a):
68
68
69
69
def lua_abs (a ):
70
70
if a .is_number () and a .value != 0x80000000 : # avoid relying on clamping overflow behavior
71
- return LuaNumber (abs (a .value ))
71
+ return LuaNumber (abs (fixnum_to_signed ( a .value ) ))
72
72
73
73
def lua_floor (a ):
74
74
if a .is_number ():
Original file line number Diff line number Diff line change 9
9
from pico_defs import get_default_version_id
10
10
import argparse
11
11
12
- k_version = 'v1.2.0d '
12
+ k_version = 'v1.2.0e '
13
13
14
14
def SplitBySeps (val ):
15
15
return k_hint_split_re .split (val )
Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ stop() -- for pure syntax check
13
13
?- nil
14
14
-- abs
15
15
?1.3
16
- ?65534.70002
17
- ?32768.00002
16
+ ?1.3
17
+ ?32767.99999
18
18
?abs (0x8000 )
19
19
-- flr
20
20
?5
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ stop()?0
10
10
?- false
11
11
?- nil
12
12
?1.3
13
- ?- 1.3
14
- ?32768.00002
13
+ ?1.3
14
+ ?32767.99999
15
15
?abs (32768 )
16
16
?5
17
17
?5
You can’t perform that action at this time.
0 commit comments