Files
mruby-mruby/test/t
Yukihiro "Matz" Matsumoto 36dd9eab88 vformat.rb: fix format/arg type mismatch in %!d test case
The test pushed mrb_int via vf.i but the format read int via %!d. On
x86_64/aarch64 the va_arg slots overlap so reading the low 32 bits of
the pushed int64 returned the right value, but on strict-alignment
ABIs (MIPS o32) va_arg(ap, int) reads the alignment padding and the
format prints 0 instead of the value.

Make the format match the helper: vf.i pairs with %!i (reads mrb_int),
matching the surrounding lines 44-50 convention and the "inspect
mrb_int" label.

Reported by vobloeb in #6857.

Co-authored-by: Claude <noreply@anthropic.com>
2026-05-24 10:31:14 +09:00
..
2021-11-26 12:18:41 +09:00
2021-03-01 10:06:17 +10:00
2026-05-07 15:51:30 +00:00
2025-01-26 21:11:21 +09:00
2021-03-01 10:06:17 +10:00
2021-03-01 10:06:17 +10:00
2021-05-03 15:30:59 +09:00
2021-06-16 08:34:54 +10:00