]> git.sur5r.net Git - cc65/commitdiff
A negative token count for .LEFT was incorrectly adjusted to 1, not to 0.
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 10 Jul 2010 12:32:05 +0000 (12:32 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 10 Jul 2010 12:32:05 +0000 (12:32 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@4738 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/ca65/nexttok.c

index cb76bdb18530d4d5cbebb3b34d0fe9e074670653..5aa3d0217a0da4ab00074933572a83effca35adf 100644 (file)
@@ -6,7 +6,7 @@
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 2000-2009, Ullrich von Bassewitz                                      */
+/* (C) 2000-2010, Ullrich von Bassewitz                                      */
 /*                Roemerstrasse 52                                           */
 /*                D-70794 Filderstadt                                        */
 /* EMail:         uz@cc65.org                                                */
@@ -278,7 +278,7 @@ static void FuncLeft (void)
     /* Count argument. Correct negative counts to zero. */
     Count = ConstExpression ();
     if (Count < 0) {
-       Count = 1;
+       Count = 0;
     }
     ConsumeComma ();