Browse files

Fix JRUBY-6675

  • Loading branch information...
1 parent 8a41ad6 commit a624028f1b878e27dab65b797d138a762279f537 @headius headius committed May 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/ruby/shared/ffi/library.rb
View
2 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 a624028

Please sign in to comment.