From fadd2d98b4f1bdff74d17d56c3277c2404cf2034 Mon Sep 17 00:00:00 2001 From: "Darryl L. Miles" Date: Sat, 12 Oct 2024 09:31:36 +0100 Subject: [PATCH] irouter/irCommand.c: fix SetNoisyDI() usage WARNING 64bit to 32bit truncation Was directly overwriting a 32bit storage location with a 64bit value. --- irouter/irCommand.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/irouter/irCommand.c b/irouter/irCommand.c index 25739887..699dc70c 100644 --- a/irouter/irCommand.c +++ b/irouter/irCommand.c @@ -585,7 +585,9 @@ irWzdSetBloomLimit(s,file) char *s; FILE *file; { - SetNoisyDI(&(irMazeParms->mp_bloomLimit),s,file); + dlong tmp; + SetNoisyDI(&tmp,s,file); + irMazeParms->mp_bloomLimit = tmp; /* FIXME should this be truncated ? */ } /* irWzdSetBoundsIncrement -- */