ref: 1f34ec67713bd4d835dd2c9ae784a084f2b81b78
parent: 8f75ccd8bca408e6f080f774658ec23ac4839838
author: qwx <[email protected]>
date: Mon Nov 14 16:00:44 EST 2022
fix print flags for 32-bit
--- a/draw.c
+++ b/draw.c
@@ -113,17 +113,17 @@
char s[256], *p;
b2t(dot.pos, &th, &tm, &ts, &tμ);
- p = seprint(s, s+sizeof s, "T %lld @ %02d:%02d:%02d.%03d (%llud) ⋅ ",
+ p = seprint(s, s+sizeof s, "T %zd @ %02d:%02d:%02d.%03d (%zd) ⋅ ",
T/4, th, tm, ts, tμ, dot.pos/4);
if(dot.from.pos > 0){
b2t(dot.from.pos, &th, &tm, &ts, &tμ);
- p = seprint(p, s+sizeof s, "%02d:%02d:%02d.%03d (%llud) ↺ ",
+ p = seprint(p, s+sizeof s, "%02d:%02d:%02d.%03d (%zd) ↺ ",
th, tm, ts, tμ, dot.from.pos/4);
}else
p = seprint(p, s+sizeof s, "0 ↺ ");
if(dot.to.pos != totalsz){
b2t(dot.to.pos, &th, &tm, &ts, &tμ);
- seprint(p, s+sizeof s, "%02d:%02d:%02d.%03d (%llud)",
+ seprint(p, s+sizeof s, "%02d:%02d:%02d.%03d (%zd)",
th, tm, ts, tμ, dot.to.pos/4);
}else
seprint(p, s+sizeof s, "∞");