Commit 33178272
331782721c81Merged
Yukihiro "Matz" Matsumoto <[email protected]> · 7 months ago · 1 file · ~1 modified
Description
fix: eliminate int-conversion warning in compile_operator_expr
Rename reused 'arg' variable to 're_args_id' in =~ and match? handlers to avoid type conflict (const char* vs mrb_int). Bootstrap now compiles with zero warnings.
Co-Authored-By: Claude Opus 4.6 (1M context) [email protected]
Details
- Commit
- 331782721c81
- Parent
- bd283cb5d1fc
spinel_codegen.rbmodifiedView file
@@ -11207,9 +11207,9 @@
1120711207
if mname == "=~"1120811208
# str =~ /pattern/ → sp_re_match(pat, str)1120911209
rc = compile_expr(recv)11210-
arg = @nd_arguments[nid]11211-
if arg >= 011212-
argl = get_args(@nd_arguments[nid])11210+
re_args_id = @nd_arguments[nid]11211+
if re_args_id >= 011212+
argl = get_args(re_args_id)1121311213
if argl.length > 01121411214
ridx = find_regexp_index(argl[0])1121511215
if ridx >= 0@@ -11479,9 +11479,9 @@
1147911479
return "sp_str_split(" + rc + ", " + compile_arg0(nid) + ")"1148011480
end1148111481
if mname == "match?"11482-
arg = @nd_arguments[nid]11483-
if arg >= 011484-
argl = get_args(arg)11482+
re_args_id = @nd_arguments[nid]11483+
if re_args_id >= 011484+
argl = get_args(re_args_id)1148511485
if argl.length > 01148611486
ridx = find_regexp_index(argl[0])1148711487
if ridx >= 0