aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2025-02-09 18:12:58 +0100
committerdefault <nobody@localhost>2025-02-09 18:12:58 +0100
commit3db7d9f58abe4595fbc75fb9d08dc84eba742bdd (patch)
tree646a4d0d81e0cfa9309c4d54504f3c683f0c8010
parent699762ef4ca90806f8ee95c3f92b5345cedc77a5 (diff)
Fixed function tid() for some architectures.
-rw-r--r--snac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/snac.c b/snac.c
index 80c7349..9f5b50e 100644
--- a/snac.c
+++ b/snac.c
@@ -69,7 +69,7 @@ xs_str *tid(int offset)
gettimeofday(&tv, NULL);
- return xs_fmt("%10d.%06d", tv.tv_sec + offset, tv.tv_usec);
+ return xs_fmt("%010ld.%06ld", (long)tv.tv_sec + (long)offset, (long)tv.tv_usec);
}