diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2022-09-22 22:25:33 +0900 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2022-09-23 06:44:28 +0900 |
commit | dfc311c0b3b7d81afa7b153a473990959d46c7ad (patch) | |
tree | 84639c9af806fb9737aa7bc3d810bc8c428c7afa /tool/mjit | |
parent | dc5b536468f8def4ab808da57462aee6a99a6fe0 (diff) | |
download | ruby-dfc311c0b3b7d81afa7b153a473990959d46c7ad.tar.gz |
Swap the positions of offsetof and type
Diffstat (limited to 'tool/mjit')
-rwxr-xr-x | tool/mjit/bindgen.rb | 2 |
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 |