]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
better test loop
authorWolfgang (Blub) Bumiller <blub@speed.at>
Fri, 2 Nov 2012 17:49:50 +0000 (18:49 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Fri, 2 Nov 2012 17:49:50 +0000 (18:49 +0100)
preprocess.c

index bf1873da013f276b81017227ab44e881eeba7e71..55878a04d5bf544d1be487e92ba9f5061758419a 100644 (file)
@@ -25,8 +25,8 @@ bool preprocess(const char *filename)
             printf("\n");
         else if (tok >= TOKEN_START && tok < TOKEN_EOF)
             printf("%s", lex->tok.value);
-        else
-            printf("%c", tok);
+        else if (tok < TOKEN_START)
+            printf("%c", tok); /* these are characters */
 #endif
     } while (tok < TOKEN_EOF);