From 77060adb3d9cee261c56299111ea044f84113670 Mon Sep 17 00:00:00 2001 From: Wodann Date: Sat, 22 Oct 2022 05:16:08 +0200 Subject: [PATCH] fix(napi): BigInt::get_u64 lossless check (#1348) --- crates/napi/src/bindgen_runtime/js_values/bigint.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/napi/src/bindgen_runtime/js_values/bigint.rs b/crates/napi/src/bindgen_runtime/js_values/bigint.rs index 3dc4a5f5..27100318 100644 --- a/crates/napi/src/bindgen_runtime/js_values/bigint.rs +++ b/crates/napi/src/bindgen_runtime/js_values/bigint.rs @@ -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, ) }