Patch by Antony Gelberg <ant...@wayforth.co.uk> to fix Debian bug #320597 [1]. Obtained from the Debian package [2].
[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=320597 [2] https://sources.debian.net/src/wmcalc/0.5-1/debian/patches/10_bts-320597_increase_significant_digits.patch/ --- wmcalc/wmcalcfunc.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/wmcalc/wmcalcfunc.c b/wmcalc/wmcalcfunc.c index 692fa3c..8b98338 100644 --- a/wmcalc/wmcalcfunc.c +++ b/wmcalc/wmcalcfunc.c @@ -17,6 +17,7 @@ Change History: Date Modification 11/03/00 File Header added + 27/12/06 Increased significant digits (Antony Gelberg, ant...@wayforth.co.uk) ****************************************************************/ @@ -382,19 +383,19 @@ void equalfunc (void) { switch (OpFlag) { case '+': RegisterA = RegisterB + RegisterA; - sprintf(DispString, "%10.5g", RegisterA); + sprintf(DispString, "%10.10g", RegisterA); break; case '-': RegisterA = RegisterB - RegisterA; - sprintf(DispString, "%10.5g", RegisterA); + sprintf(DispString, "%10.10g", RegisterA); break; case '*': RegisterA = RegisterB * RegisterA; - sprintf(DispString, "%10.5g", RegisterA); + sprintf(DispString, "%10.10g", RegisterA); break; case '/': RegisterA = RegisterB / RegisterA; - sprintf(DispString, "%10.5g", RegisterA); + sprintf(DispString, "%10.10g", RegisterA); break; default: break; -- 2.1.4 -- To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.