- any_to_int checks value to be int and no longer works with enum.

- Add check in formatter printing "%c".
This commit is contained in:
Christoffer Lerno
2024-12-29 17:06:53 +01:00
parent 4f4476ba75
commit 1340a47bc2
4 changed files with 19 additions and 7 deletions

View File

@@ -606,6 +606,10 @@ fn usz! Formatter.ntoa_any(&self, any arg, uint base) @private
fn usz! Formatter.out_char(&self, any arg) @private
{
if (!arg.type.kindof.is_int())
{
return self.out_substr("<NOT CHAR>");
}
usz len = 1;
uint l = 1;
// pre padding