Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed MemoryPointer bug in 1.8

  • Loading branch information...
commit 079c10d56fa14b8e84bbb38e9f1ac1f2029d98db 1 parent d8c446f
@QaDeS authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/ffi/memorypointer.rb
View
8 lib/ffi/memorypointer.rb
@@ -31,3 +31,11 @@ def self.from_string(s)
end
end
+
+unless ''.respond_to?(:bytesize)
+ class String
+ alias bytesize size
+ end
+end
+
+
Please sign in to comment.
Something went wrong with that request. Please try again.