Hello!

Have you tried `NanNew<Value>`?

Thanks,
Fedor.

On Fri, Sep 23, 2016 at 3:53 AM, NodeNinja <aeon6f...@gmail.com> 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 nodejs+unsubscr...@googlegroups.com.
> To post to this group, send email to nodejs@googlegroups.com.
> 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 nodejs+unsubscr...@googlegroups.com.
To post to this group, send email to nodejs@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/CAEv2VfJYegBJuiMxbBQ%3DAzd_XBxCzv%3DM3CJABJLVm2ZU8nc0Tg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to