ref: dd2ed5326e57ba6768aa0d5b8d2955f9839ca5ec
parent: 06d10d96e9a81e63be23889be6e5d428e786df56
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon Nov 18 20:56:48 EST 2024
libmp/convtest: fix format string type warning uint -> %ud and remove unused variables
--- a/sys/src/libmp/test/convtest.c
+++ b/sys/src/libmp/test/convtest.c
@@ -38,10 +38,7 @@
_name(void) \
{ \
mpint *m, *r; \
- int i, sign, mag; \
- _type v; \
- int fail; \
- \
+ int i, sign, mag, fail; \
fail = 0; \
m = mpnew(0); \
r = mpnew(0); \
@@ -98,7 +95,7 @@
XTOMP(test_uitomp, uint, uitomp)
if(mag >= 32 || sign < 0) continue;
-XTOMP_END(uitomp, uint, "%lld")
+XTOMP_END(uitomp, uint, "%ud")
XTOMP(test_vtomp, vlong, vtomp)
if(mag >= 63) continue;
--
⑨