Permalink
Browse files

Fix qsort example for 64bit

  • Loading branch information...
1 parent 552ab39 commit d6c005312bf35b70135a52838c27d0eff0d6c37b Wayne Meissner committed Dec 12, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 samples/qsort.rb
View
@@ -5,7 +5,7 @@ module LibC
extend FFI::Library
ffi_lib FFI::Library::LIBC
callback :qsort_cmp, [ :pointer, :pointer ], :int
- attach_function :qsort, [ :pointer, :int, :int, :qsort_cmp ], :int
+ attach_function :qsort, [ :pointer, :ulong, :ulong, :qsort_cmp ], :int
end
p = FFI::MemoryPointer.new(:int, 2)

0 comments on commit d6c0053

Please sign in to comment.