Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to unpack numbers > UINT_MAX (4294967295) #2

Open
mortiy opened this issue May 20, 2013 · 0 comments
Open

Fails to unpack numbers > UINT_MAX (4294967295) #2

mortiy opened this issue May 20, 2013 · 0 comments

Comments

@mortiy
Copy link

mortiy commented May 20, 2013

Such code works:

var UINT_MAX = 4294967295;

BinaryPack.unpack(
    BinaryPack.pack(
        { number: UINT_MAX }
    )
);

This throws ( RangeError: Maximum call stack size exceeded ):

BinaryPack.unpack(
    BinaryPack.pack(
        { number: UINT_MAX + 1 }
    )
);
ericz pushed a commit that referenced this issue Dec 19, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant