Hi Fedor, you mean something like this right? Handle<Value> result = NanNew<Value>(size);
will check up and see if this works? On Sunday, September 25, 2016 at 2:48:50 AM UTC+5:30, Fedor Indutny wrote: > > Hello! > > Have you tried `NanNew<Value>`? > > Thanks, > Fedor. > > On Fri, Sep 23, 2016 at 3:53 AM, NodeNinja <[email protected] > <javascript:>> wrote: > >> 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] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/nodejs/933ddddb-4269-4204-97ee-890963460e53%40googlegroups.com >> >> <https://groups.google.com/d/msgid/nodejs/933ddddb-4269-4204-97ee-890963460e53%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > -- 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/5b7bbc4f-5ede-4eda-9849-8ae8acc46d9a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
