This commit is contained in:
Jonas Quinten
2025-02-21 19:24:02 +01:00
committed by Christoffer Lerno
parent e34d56327a
commit 38110b0269

View File

@@ -53,7 +53,7 @@ fn BigInt* BigInt.init_with_u128(&self, uint128 value)
len++;
}
assert(!self.is_negative());
self.len = max(len ?: 1);
self.len = max(len, 1);
return self;
}