summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2023-12-22 11:20:45 -0800
committerTakashi Kokubun <takashikkbn@gmail.com>2023-12-22 11:24:04 -0800
commit19d082dcfa393e8a5d0282b872ace587ca5cd49a (patch)
tree749210d710ef8a261f304e556e0709b97f45ea1f /tool
parent40e3f782dd92749a1fa593ef905d1b75fdd61904 (diff)
RJIT: Distinguish Pointer with Array
This is more convenient for accessing those fields.
Diffstat (limited to 'tool')
-rwxr-xr-xtool/rjit/bindgen.rb2
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?('*')