From c66f9faaab5dd11e076d84a107f0f5a27eb265a2 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Sat, 22 Jul 2023 10:30:37 +0200 Subject: [PATCH] Remove compiler warnings (VS2022) --- src/frontend/numparam/xpressn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/numparam/xpressn.c b/src/frontend/numparam/xpressn.c index 346cbfc14..f4185c15b 100644 --- a/src/frontend/numparam/xpressn.c +++ b/src/frontend/numparam/xpressn.c @@ -1207,7 +1207,7 @@ insertnumber(dico_t *dico, char **lp, DSTRINGPTR ustr_p) { const char *u = ds_get_buf(ustr_p); char *s = *lp; // Point to line contents - long id; + long id = 0; int n; char *p = strstr(s, "numparm__________"); @@ -1218,7 +1218,7 @@ insertnumber(dico_t *dico, char **lp, DSTRINGPTR ustr_p) (id > 0) && (id < dynsubst + 1)) { /* Found a target for substitution. */ - n = ds_get_length(ustr_p); + n = (int)ds_get_length(ustr_p); if (n <= ACT_CHARACTS) { char buf[ACT_CHARACTS + 1];