We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7935597 commit 97c9ffeCopy full SHA for 97c9ffe
lib/prism/ffi.rb
@@ -25,8 +25,8 @@ module LibRubyParser
25
# void -> :void
26
#
27
def self.resolve_type(type)
28
- type = type.strip.delete_prefix("const ")
29
- type.end_with?("*") ? :pointer : type.to_sym
+ type = type.strip
+ type.end_with?("*") ? :pointer : type.delete_prefix("const ").to_sym
30
end
31
32
# Read through the given header file and find the declaration of each of the
0 commit comments