about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2002-10-30 19:29:42 +0000
committerWayne Davison <wayned@users.sourceforge.net>2002-10-30 19:29:42 +0000
commitf303c735fd23e96dd529d82e186e937ec5518b68 (patch)
tree9558607863d2af5c90ad030af48cebc53cb21c3e
parentc2b5a21ae53bf800a6f99daeb6ab2d192d8b07a6 (diff)
downloadzsh-f303c735fd23e96dd529d82e186e937ec5518b68.tar.gz
zsh-f303c735fd23e96dd529d82e186e937ec5518b68.tar.xz
zsh-f303c735fd23e96dd529d82e186e937ec5518b68.zip
Got rid of a gcc-3.2 compiler warning.
-rw-r--r--Src/math.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Src/math.c b/Src/math.c
index f970f3669..766dff679 100644
--- a/Src/math.c
+++ b/Src/math.c
@@ -378,8 +378,9 @@ zzlex(void)
 	    break;
 	case '0':
 	    if (*ptr == 'x' || *ptr == 'X') {
+		ptr++;
 		/* Should we set lastbase here? */
-		yyval.u.l = zstrtol(++ptr, &ptr, lastbase = 16);
+		yyval.u.l = zstrtol(ptr, &ptr, lastbase = 16);
 		return NUM;
 	    }
 	    else if (isset(OCTALZEROES) &&