summaryrefslogtreecommitdiff
path: root/lib/mjit
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2022-09-22 22:32:49 +0900
committerTakashi Kokubun <takashikkbn@gmail.com>2022-09-23 06:44:28 +0900
commit0c9dc01a2a9a082843b287d30a18c6c67d79de51 (patch)
treeab10a4824557deebedfe87ab8e9953d0455518d1 /lib/mjit
parentdfc311c0b3b7d81afa7b153a473990959d46c7ad (diff)
Skip struct fields whose output differs
across different environments
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/6418
Diffstat (limited to 'lib/mjit')
-rw-r--r--lib/mjit/c_type.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mjit/c_type.rb b/lib/mjit/c_type.rb
index 8ccdfcc4d3..9e45d8d41c 100644
--- a/lib/mjit/c_type.rb
+++ b/lib/mjit/c_type.rb
@@ -46,9 +46,9 @@ module RubyVM::MJIT
new(Fiddle::Importer.parse_ctype(ctype))
end
- def self.find(size, unsigned)
+ def self.find(size, signed)
fiddle_type = TYPE_MAP.fetch(size)
- fiddle_type = -fiddle_type if unsigned
+ fiddle_type = -fiddle_type unless signed
new(fiddle_type)
end