aboutsummaryrefslogtreecommitdiffstats
path: root/tool/mjit
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2022-09-22 22:25:33 +0900
committerTakashi Kokubun <takashikkbn@gmail.com>2022-09-23 06:44:28 +0900
commitdfc311c0b3b7d81afa7b153a473990959d46c7ad (patch)
tree84639c9af806fb9737aa7bc3d810bc8c428c7afa /tool/mjit
parentdc5b536468f8def4ab808da57462aee6a99a6fe0 (diff)
downloadruby-dfc311c0b3b7d81afa7b153a473990959d46c7ad.tar.gz
Swap the positions of offsetof and type
Diffstat (limited to 'tool/mjit')
-rwxr-xr-xtool/mjit/bindgen.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/mjit/bindgen.rb b/tool/mjit/bindgen.rb
index 62ffeaaa3a..d6431f8c40 100755
--- a/tool/mjit/bindgen.rb
+++ b/tool/mjit/bindgen.rb
@@ -219,7 +219,7 @@ class BindingGenerator
off_type = sizeof_type || "(*((#{node.type} *)NULL))"
offsetof = "Primitive.cexpr!(\"OFFSETOF(#{off_type}, #{field})\")"
end
- " #{field}: [#{offsetof}, #{type}#{', true' if to_ruby}],\n"
+ " #{field}: [#{type}, #{offsetof}#{', true' if to_ruby}],\n"
else
" #{field}: #{type},\n"
end