# HG changeset patch # User Rob Landley # Date 1196894839 21600 # Node ID 4a8e25b7f5108c19bc760a6a06d80ed2ec7633f3 # Parent 32a7a7173c579af310735f9cc4184b4777b7cfd0 Fix octal string escapes. (Thinko.) diff -r 32a7a7173c57 -r 4a8e25b7f510 tcc.c --- 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;