From 9afea8a67141549a97e093efd9b90b0e7f666285 Mon Sep 17 00:00:00 2001 From: Brendan Hansen Date: Mon, 13 Dec 2021 18:44:20 -0600 Subject: [PATCH] added i16 and u16 to print --- core/conv.onyx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/conv.onyx b/core/conv.onyx index 40836974..49b4c3f4 100644 --- a/core/conv.onyx +++ b/core/conv.onyx @@ -403,6 +403,14 @@ str_format_va :: (buffer: [] u8, format: str, va: [] any) -> str { } } + case i16, u16 { + value := *(cast(^i16) v.data); + + ibuf : [128] u8; + istr := i64_to_str(~~value, formatting.base, ~~ibuf, min_length=formatting.minimum_width); + output->write(istr); + } + case i32, u32 { value := *(cast(^i32) v.data); -- 2.25.1