We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Big unsigned Longs are not correctly checked for equality with a string.
see this JSFiddle
.equals() returns true for given arguments
.equals() returns false
The text was updated successfully, but these errors were encountered:
Yeah, indeed, it looks the equals, and comp functions are not finished for the case of comparing signed and unsigned value.
equals
comp
const value = '10234114402585926231' let l1 = Long.fromValue(value, true); let l2 = Long.fromValue(value, false); console.log(l1.eq(l2)); console.log(l1.comp(l2));
Incorrectly show false, and -1.
false
-1
Sorry, something went wrong.
No branches or pull requests
Big unsigned Longs are not correctly checked for equality with a string.
Steps to reproduce:
see this JSFiddle
Expected behaviour:
.equals() returns true for given arguments
Actual behaviour:
.equals() returns false
The text was updated successfully, but these errors were encountered: