freebsd-ports/lang/rexx-regina/files/patch-regutil_regtrig.c
Fernando Apesteguía dc4b1b5154 lang/rexx-regina: upgrade to 3.9.3
ChangeLog:
https://sourceforge.net/projects/regina-rexx/files/regina-rexx/3.9.3/

PR:	252726
Submitted by:	bob@eager.cx (maintainer)
MFH:	2021Q1 (plenty of bugfixes)
2021-01-18 19:17:53 +00:00

11 lines
591 B
C

--- regutil/regtrig.c.orig 2019-10-06 06:09:42 UTC
+++ regutil/regtrig.c
@@ -124,7 +124,7 @@ static void FormatResult(double res, unsigned long pre
}
else
/* format the result */
- result->strlength = sprintf( result->strptr, "%.*f", precision, res );
+ result->strlength = sprintf( result->strptr, "%.*f", (int) precision, res );
/* end in a period? */
if (result->strptr[result->strlength - 1] == '.')
result->strlength--; /* remove the period */