Permalink
Browse files

fixed MemoryPointer bug in 1.8

  • Loading branch information...
1 parent d8c446f commit 079c10d56fa14b8e84bbb38e9f1ac1f2029d98db @QaDeS committed Apr 20, 2011
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/ffi/memorypointer.rb
View
@@ -31,3 +31,11 @@ def self.from_string(s)
end
end
+
+unless ''.respond_to?(:bytesize)
+ class String
+ alias bytesize size
+ end
+end
+
+

0 comments on commit 079c10d

Please sign in to comment.