Subject: [ruby-ffi] Re: Reading struct elements returning incorrect values |
From: Navaneeth KN |
Date: 6/24/12 1:09 AM |
To: ruby-ffi@googlegroups.com |
Shouldn't this line:item = VarnamLibrary::Token.new(ptr)be:item = VarnamLibrary::Token.new(tok)i.e. cast the return value from varray_get() to a Token struct?