diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2023-12-22 11:20:45 -0800 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2023-12-22 11:24:04 -0800 |
commit | 19d082dcfa393e8a5d0282b872ace587ca5cd49a (patch) | |
tree | 749210d710ef8a261f304e556e0709b97f45ea1f /tool | |
parent | 40e3f782dd92749a1fa593ef905d1b75fdd61904 (diff) |
RJIT: Distinguish Pointer with Array
This is more convenient for accessing those fields.
Diffstat (limited to 'tool')
-rwxr-xr-x | tool/rjit/bindgen.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/rjit/bindgen.rb b/tool/rjit/bindgen.rb index f8040461bc..bf33d92bd2 100755 --- a/tool/rjit/bindgen.rb +++ b/tool/rjit/bindgen.rb @@ -296,7 +296,7 @@ class BindingGenerator # @param type [String] def generate_type(type) if type.match?(/\[\d+\]\z/) - return "CType::Pointer.new { #{generate_type(type.sub!(/\[\d+\]\z/, ''))} }" + return "CType::Array.new { #{generate_type(type.sub!(/\[\d+\]\z/, ''))} }" end type = type.delete_suffix('const') if type.end_with?('*') |