diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-11-05 15:18:32 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-11-05 15:18:32 -0500 |
| commit | b8d7eabc023bf9db0150049d8e909086f6ad91bc (patch) | |
| tree | 5b678c7949638b3f07095affc04611f0422ef8c7 /stdlib/nums.c | |
| parent | 2fa26e6af3ec1599396d9260ef44b0d035b1f686 (diff) | |
Deprecate bit-width integer/num literals in favor of using type
constructors
Diffstat (limited to 'stdlib/nums.c')
| -rw-r--r-- | stdlib/nums.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stdlib/nums.c b/stdlib/nums.c index b8de553e..30973fbc 100644 --- a/stdlib/nums.c +++ b/stdlib/nums.c @@ -93,7 +93,7 @@ public const TypeInfo_t Num$info = { public PUREFUNC Text_t Num32$as_text(const float *f, bool colorize, const TypeInfo_t *type) { (void)type; if (!f) return Text("Num32"); - return Text$format(colorize ? "\x1b[35m%.8g_f32\x1b[33;2m\x1b[m" : "%.8g_f32", (double)*f); + return Text$format(colorize ? "\x1b[36mNum32(\x1b[35m%.8g\x1b[33;2m\x1b[m)" : "Num32(%.8g)", (double)*f); } public PUREFUNC int32_t Num32$compare(const float *x, const float *y, const TypeInfo_t *type) { |
