diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-04-28 14:43:13 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-04-28 14:43:13 -0400 |
| commit | 0b5ee78f5a366e448ee74155d878c84ed92135bc (patch) | |
| tree | b4ee7c39eba498a1a08ce76161e9567805346093 /lib | |
| parent | a188532f495e21cdcb9a5dfaf9032734341bb950 (diff) | |
Explicitly use int64 for string
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/time/time_defs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/time/time_defs.h b/lib/time/time_defs.h index 7afb9c16..30000983 100644 --- a/lib/time/time_defs.h +++ b/lib/time/time_defs.h @@ -10,7 +10,7 @@ static INLINE Text_t num_format(long n, const char *unit) { if (n == 0) return Text("now"); - return Text$from_str(String(labs(n), " ", unit, (n == -1 || n == 1) ? "" : "s", n <= 0 ? " ago" : " later")); + return Text$from_str(String((int64_t)labs(n), " ", unit, (n == -1 || n == 1) ? "" : "s", n <= 0 ? " ago" : " later")); } static void set_local_timezone(Text_t tz) |
