From eae328afdb3e7e111847042ea85105bb4f426fb8 Mon Sep 17 00:00:00 2001 From: koniifer Date: Tue, 17 Dec 2024 18:22:39 +0000 Subject: [PATCH] less less broken --- sysdata/libraries/stn/src/formatters.hb | 2 +- sysdata/programs/test/src/tests/stn/formatters.hb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sysdata/libraries/stn/src/formatters.hb b/sysdata/libraries/stn/src/formatters.hb index be454cc..e5a15bd 100644 --- a/sysdata/libraries/stn/src/formatters.hb +++ b/sysdata/libraries/stn/src/formatters.hb @@ -182,7 +182,7 @@ FormatOptions := struct { /* SAFETY: * Assumes the buffer is wide enough for the formatted text and a null char */ -format := fn($T: type, v: T, str: ^u8): ^u8 return @inline(format_args, T, v, str, .()) +format := fn($T: type, v: T, str: ^u8): ^u8 return @inline(format_args, T, v, str, .{}) format_args := fn($T: type, v: T, str: ^u8, opts: FormatOptions): ^u8 { @inline(string.clear, str) diff --git a/sysdata/programs/test/src/tests/stn/formatters.hb b/sysdata/programs/test/src/tests/stn/formatters.hb index 171f141..538f9c8 100644 --- a/sysdata/programs/test/src/tests/stn/formatters.hb +++ b/sysdata/programs/test/src/tests/stn/formatters.hb @@ -20,7 +20,7 @@ test := fn(): uint { radix: 16, })) log.info(format_args(f64, math.LN_2, buffer, .{radix: 16})) - // log.info(format([u8; 3], .(1, 2, 3), buffer)) + log.info(format([u8; 3], .(1, 2, 3), buffer)) log.info(format(^SubThingy, &.(0.0, true), buffer)) return 0