diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2021-06-04 10:40:17 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2021-06-04 10:40:17 +0300 |
commit | 11e5841dff821b7cee4308ea6596d4bef8d53466 (patch) | |
tree | 8e1f75f54e9bce6d4918811ced549dc25ab4db15 /builtin.c | |
parent | 4b414c78fb790a591275c978cb3d4af9228d3fb0 (diff) | |
parent | ea7bbec49eff411dac42c34c1d743a9742715c8c (diff) | |
download | egawk-11e5841dff821b7cee4308ea6596d4bef8d53466.tar.gz egawk-11e5841dff821b7cee4308ea6596d4bef8d53466.tar.bz2 egawk-11e5841dff821b7cee4308ea6596d4bef8d53466.zip |
Merge branch 'gawk-5.1-stable'
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) } } |