From abbfaef2aa22e51b9767e9a1aa060442f5dafdef Mon Sep 17 00:00:00 2001 From: uz Date: Sat, 10 Jul 2010 12:32:05 +0000 Subject: [PATCH] A negative token count for .LEFT was incorrectly adjusted to 1, not to 0. git-svn-id: svn://svn.cc65.org/cc65/trunk@4738 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/ca65/nexttok.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ca65/nexttok.c b/src/ca65/nexttok.c index cb76bdb18..5aa3d0217 100644 --- a/src/ca65/nexttok.c +++ b/src/ca65/nexttok.c @@ -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 (); -- 2.39.5