changeset 526:4a8e25b7f510

Fix octal string escapes. (Thinko.)
author Rob Landley <rob@landley.net>
date Wed, 05 Dec 2007 16:47:19 -0600
parents 32a7a7173c57
children 00f2128ca0a4
files tcc.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tcc.c	Wed Dec 05 16:46:51 2007 -0600
+++ b/tcc.c	Wed Dec 05 16:47:19 2007 -0600
@@ -2194,7 +2194,7 @@
             /* at most three octal digits */
             for (i = c = 0; i<3; i++) {
                 n = *(++p);
-                if (n<0 || n>7) break;
+                if (n<'0' || n>'7') break;
                 n = c*8+n-'0';
             }
             if (i) goto add_char_nonext;