node version : v0.12.12

I was porting some legacy code to nodev0.12.12 using node nan.
The ported work seemed to work when I built it on a 32bit system.
Now I have upgraded to a 64bit system and I getting an error in the build.


NAN_METHOD(BigInt::BitLength)
{
    NanScope();
    BigInt *bigint = ObjectWrap::Unwrap<BigInt>(args.This());


    size_t size = mpz_sizeinbase(*bigint->bigint_, 2);

    Handle<Value> result = NanNew(size);  // <= error: call of overloaded 
‘NanNew(size_t&)’ is ambiguous

    NanReturnValue(result);
}

My question is how do I return a Handle<Value> using node/nan?

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/933ddddb-4269-4204-97ee-890963460e53%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to