summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/prism/ffi.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/prism/ffi.rb b/lib/prism/ffi.rb
index 3ff1875611..69b2b35bbb 100644
--- a/lib/prism/ffi.rb
+++ b/lib/prism/ffi.rb
@@ -25,8 +25,8 @@ module Prism
# void -> :void
#
def self.resolve_type(type)
- type = type.strip.delete_prefix("const ")
- type.end_with?("*") ? :pointer : type.to_sym
+ type = type.strip
+ type.end_with?("*") ? :pointer : type.delete_prefix("const ").to_sym
end
# Read through the given header file and find the declaration of each of the