freebsd-ports/lang/rexx-regina/files/patch-regutil_regtrig.c
Kurt Jaeger f1e794db90 lang/rexx-regina: 3.8.2 -> 3.9.1
- submitter becomes maintainer
- Makefile tidied, and passes portlint -C
- rc.d file corrected; now passes rclint
- port now installs documentation (PDF), not previously included
- added DOCS option, controlling installation of above
- files in /usr/local/share now in directories that actually match the
  name of the port

PR:		212242
Submitted by:	bob@eager.cx
2016-08-29 18:37:40 +00:00

11 lines
577 B
C

--- regutil/regtrig.c.orig 2014-06-22 03:53:33 UTC
+++ regutil/regtrig.c
@@ -124,7 +124,7 @@ static void FormatResult(double res, uns
}
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 */