* src/SDCC.lex: fixed bug #1852894: # character hangs the compiler
authorborutr <borutr@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sat, 22 Dec 2007 13:05:08 +0000 (13:05 +0000)
committerborutr <borutr@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sat, 22 Dec 2007 13:05:08 +0000 (13:05 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4981 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
src/SDCC.lex

index ded25afae8880d132637708faade990e275fb8b3..f4ab4caae26c4d8f5610e59f765f7fecba037bac 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-12-22 Borut Razem <borut.razem AT siol.net>
+
+       * src/SDCC.lex: fixed bug #1852894: # character hangs the compiler
+
 2007-12-20 Maarten Brock <sourceforge.brock AT dse.nl>
 
        * src/SDCCsymt.c (computeType): fixed bug, thanks Fan Weiguang
index 91f8bf319fe1566b56b659e3a41b4774686e552f..e0038cc65202abf5aa30a0557481a7cfa8a14573 100644 (file)
@@ -501,8 +501,10 @@ static const char *stringLiteral(void)
                       dbuf_destroy(&linebuf);
                     }
                   else
-                    unput(ch);
-                  break;
+                    {
+                      unput(ch);
+                      goto out;
+                    }
 
                 default:
                   count_char(ch);