From de8ff3ffc1f890752fdcc27246f8eacfa12d5f58 Mon Sep 17 00:00:00 2001
From: Marcus Comstedt <marcus@mc.pp.se>
Date: Tue, 26 Oct 1999 17:55:51 +0200
Subject: [PATCH] Minor omptimization in printing negative numbers...

Rev: src/modules/sprintf/sprintf.c:1.55
---
 src/modules/sprintf/sprintf.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/modules/sprintf/sprintf.c b/src/modules/sprintf/sprintf.c
index c41a197e0b..4dbf7022f3 100644
--- a/src/modules/sprintf/sprintf.c
+++ b/src/modules/sprintf/sprintf.c
@@ -102,7 +102,7 @@
 */
 
 #include "global.h"
-RCSID("$Id: sprintf.c,v 1.54 1999/10/26 15:34:33 marcus Exp $");
+RCSID("$Id: sprintf.c,v 1.55 1999/10/26 15:55:51 marcus Exp $");
 #include "error.h"
 #include "array.h"
 #include "svalue.h"
@@ -1127,7 +1127,7 @@ static void low_pike_sprintf(struct format_stack *fs,
 	      if((*p++ = '0'|(val&((1<<base)-1)))>'9')
 		p[-1] += (mode=='X'? 'A'-'9'-1 : 'a'-'9'-1);
 	      val = ((unsigned INT_TYPE)val) >> base;
-	    } while(--mask_size && val);
+	    } while(val);
 	    l = p-x-1;
 	  }
 	  *p = '\0';
-- 
GitLab