about summary refs log tree commit diff
path: root/misc/efgcvt_r.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/efgcvt_r.c')
-rw-r--r--misc/efgcvt_r.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/efgcvt_r.c b/misc/efgcvt_r.c
index d93dda55af..ac2a5c45bf 100644
--- a/misc/efgcvt_r.c
+++ b/misc/efgcvt_r.c
@@ -141,9 +141,9 @@ APPEND (FUNC_PREFIX, fcvt_r) (value, ndigit, decpt, sign, buf, len)
   if (left)
     {
       *decpt += left;
-      if (--len > n)
+      if ((ssize_t) --len > n)
 	{
-	  while (left-- > 0 && n < len)
+	  while (left-- > 0 && n < (ssize_t) len)
 	    buf[n++] = '0';
 	  buf[n] = '\0';
 	}