mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Fix BigInt
This commit is contained in:
@@ -506,6 +506,11 @@ fn BigInt BigInt.abs(&self)
|
||||
return self.is_negative() ? self.unary_minus() : *self;
|
||||
}
|
||||
|
||||
fn String BigInt.to_string(&self, Allocator allocator) @dynamic
|
||||
{
|
||||
return self.to_string_with_radix(10, allocator);
|
||||
}
|
||||
|
||||
fn usz? BigInt.to_format(&self, Formatter* format) @dynamic
|
||||
{
|
||||
if (self.is_zero())
|
||||
|
||||
Reference in New Issue
Block a user