]> Cypherpunks repositories - gostls13.git/commitdiff
slightly better code for the frog fix
authorRob Pike <r@golang.org>
Sun, 1 Feb 2009 00:44:52 +0000 (16:44 -0800)
committerRob Pike <r@golang.org>
Sun, 1 Feb 2009 00:44:52 +0000 (16:44 -0800)
R=ken
OCL=24025
CL=24025

src/cmd/gc/lex.c

index a4f12313e07ba158445c72d1742afaa7df014c7c..78394b89b43752bd6323ab77d543d03b6b1fe415 100644 (file)
@@ -305,11 +305,11 @@ isfrog(int c) {
        if(c < 0)
                return 1;
        if(c < ' ') {
-               if(c == ' ' || c == '\n' || c== '\r' || c == '\t')      // good white space
+               if(c == '\n' || c== '\r' || c == '\t')  // good white space
                        return 0;
                return 1;
        }
-       if(0x80 <= c && c <=0xa0)       // unicode block including unbreakable space.
+       if(0x80 <= c && c <= 0xa0)      // unicode block including unbreakable space.
                return 1;
        return 0;
 }