fix int formatting in std::collections::object

This commit is contained in:
Denis Palashevskii
2024-10-05 13:17:18 +04:00
committed by Christoffer Lerno
parent 2ef1465244
commit 217151be8d
2 changed files with 19 additions and 1 deletions

View File

@@ -63,7 +63,7 @@ fn usz! Object.to_format(&self, Formatter* formatter) @dynamic
switch (self.type.kindof)
{
case SIGNED_INT:
return formatter.printf("%d", self.i)!;
return formatter.printf("%d", (int128)self.i)!;
case UNSIGNED_INT:
return formatter.printf("%d", (uint128)self.i)!;
case FLOAT: