diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2021-06-04 10:39:46 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2021-06-04 10:39:46 +0300 |
commit | ea7bbec49eff411dac42c34c1d743a9742715c8c (patch) | |
tree | 68e5b00d5218b83f525d1f6ae9039c7c513ea5bb /builtin.c | |
parent | 9a15a6a255b5c4c1086c5b6b6e97745b43240feb (diff) | |
download | egawk-ea7bbec49eff411dac42c34c1d743a9742715c8c.tar.gz egawk-ea7bbec49eff411dac42c34c1d743a9742715c8c.tar.bz2 egawk-ea7bbec49eff411dac42c34c1d743a9742715c8c.zip |
Fix for HP-UX.
Diffstat (limited to 'builtin.c')
-rw-r--r-- | builtin.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1558,19 +1558,19 @@ mpf1: case MP_INT_WITH_PREC: sprintf(cp, "*.*Z%c", cs1); while ((nc = mpfr_snprintf(obufout, ofre, cpbuf, - (int) fw, (int) prec, zi)) >= ofre) + (int) fw, (int) prec, zi)) >= (int) ofre) chksize(nc) break; case MP_INT_WITHOUT_PREC: sprintf(cp, "*Z%c", cs1); while ((nc = mpfr_snprintf(obufout, ofre, cpbuf, - (int) fw, zi)) >= ofre) + (int) fw, zi)) >= (int) ofre) chksize(nc) break; case MP_FLOAT: sprintf(cp, "*.*R*%c", cs1); while ((nc = mpfr_snprintf(obufout, ofre, cpbuf, - (int) fw, (int) prec, ROUND_MODE, mf)) >= ofre) + (int) fw, (int) prec, ROUND_MODE, mf)) >= (int) ofre) chksize(nc) break; #endif @@ -1579,7 +1579,7 @@ mpf1: sprintf(cp, "*.*%c", cs1); while ((nc = snprintf(obufout, ofre, cpbuf, (int) fw, (int) prec, - (double) tmpval)) >= ofre) + (double) tmpval)) >= (int) ofre) chksize(nc) } else { // For %a and %A, use the default precision if it @@ -1587,7 +1587,7 @@ mpf1: sprintf(cp, "*%c", cs1); while ((nc = snprintf(obufout, ofre, cpbuf, (int) fw, - (double) tmpval)) >= ofre) + (double) tmpval)) >= (int) ofre) chksize(nc) } } |