Commit 1a0cd1bc
1a0cd1bcab75Merged
Yukihiro "Matz" Matsumoto <[email protected]> · 6 months ago · 1 file · ~1 modified
Description
fix(codegen): array literal IntArray push detects stale-int bigint
Details
- Commit
- 1a0cd1bcab75
- Parent
- 213a3efa0728
spinel_codegen.rbmodifiedView file
@@ -25672,7 +25672,7 @@
2567225672
# compiler rejects the push with "incompatible type".2567325673
if et == "poly"2567425674
ev = "(" + ev + ").v.i"25675-
elsif et == "bigint"25675+
elsif et == "bigint" || expr_emit_is_bigint(eid) == 12567625676
# promote-mode element: unbox to mrb_int.2567725677
@needs_bigint = 12567825678
ev = "sp_bigint_to_int((sp_Bigint *)" + ev + ")"