fix(napi): BigInt::get_u64 lossless check (#1348)

This commit is contained in:
Wodann 2022-10-22 05:16:08 +02:00 committed by GitHub
parent a12bdc4359
commit 77060adb3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -85,7 +85,7 @@ impl BigInt {
(
self.sign_bit,
self.words[0],
self.sign_bit && self.words.len() == 1,
!self.sign_bit && self.words.len() == 1,
)
}