Permalink
Browse files

Fix JRUBY-6675

  • Loading branch information...
1 parent 87404f0 commit 2ef7719d06c0fabb44584f3bd4c38fd5534a64e3 @headius headius committed May 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/ruby/shared/ffi/library.rb
@@ -152,7 +152,7 @@ def attach_function(mname, a2, a3, a4=nil, a5 = nil)
if invokers.empty?
begin
function = lib.find_function(cname.to_s)
- raise FFI::NotFoundError.new(cname.to_s, *ffi_libraries.map { |lib| lib.name }) unless function
+ raise FFI::NotFoundError.new(cname.to_s, *ffi_libraries.map { |clib| clib.name }) unless function
invokers << if arg_types.length > 0 && arg_types[arg_types.length - 1] == FFI::NativeType::VARARGS
FFI::VariadicInvoker.new(arg_types, find_type(ret_type), function, options)
else

0 comments on commit 2ef7719

Please sign in to comment.