Commit e5b9da67

e5b9da671df3Merged

Yukihiro "Matz" Matsumoto <[email protected]> · 6 months ago · 1 file · ~1 modified

Description

fix(codegen): Integer#inspect on bigint returns sp_bigint_to_s

Details

Commit
e5b9da671df3
Parent
9fe019d77c9f

spinel_codegen.rbmodifiedView file

@@ -14555,6 +14555,9 @@
1455514555 if mname == "to_f"
1455614556 return "(mrb_float)sp_bigint_to_int(" + rc_b + ")"
1455714557 end
14558+ if mname == "inspect"
14559+ return "sp_bigint_to_s(" + rc_b + ")"
14560+ end
1455814561 if mname == "abs"
1455914562 return "({ sp_Bigint *_b = " + rc_b + "; sp_bigint_cmp(_b, sp_bigint_new_int(0)) < 0 ? sp_bigint_sub(sp_bigint_new_int(0), _b) : _b; })"
1456014563 end