summaryrefslogtreecommitdiff
path: root/builtin.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2021-06-10 14:11:40 +0300
committerArnold D. Robbins <arnold@skeeve.com>2021-06-10 14:11:40 +0300
commite583dbaaedb7930fe33e768527f901a4f106c909 (patch)
treecc9dc85b557234d067604e9a9e6970397f2f532d /builtin.c
parent1b5a933dff3a532f3c1413ba93ea7f60f2a074ba (diff)
parent0ef226ffbc493ac284ffdc1100f936cb27800120 (diff)
downloadgawk-e583dbaaedb7930fe33e768527f901a4f106c909.tar.gz
Merge branch 'gawk-5.1-stable'
Diffstat (limited to 'builtin.c')
-rw-r--r--builtin.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/builtin.c b/builtin.c
index ff4a53af..fe87cbe6 100644
--- a/builtin.c
+++ b/builtin.c
@@ -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)
}
}