]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
Fix ternary operator entry for -std=gmqcc
authorWolfgang (Blub) Bumiller <blub@speed.at>
Sun, 2 Dec 2012 10:56:20 +0000 (11:56 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Sun, 2 Dec 2012 10:56:20 +0000 (11:56 +0100)
lexer.h

diff --git a/lexer.h b/lexer.h
index e3ba96f1ff8f91ef2af20310720d2e42036d7878..e419794eda9f867e150e9f26064cd3ef849c9ec6 100644 (file)
--- a/lexer.h
+++ b/lexer.h
@@ -217,7 +217,7 @@ static const oper_info c_operators[] = {
     { "^=",  2, opid2('^','='),     ASSOC_RIGHT, 2,  0 },
     { "|=",  2, opid2('|','='),     ASSOC_RIGHT, 2,  0 },
 
     { "^=",  2, opid2('^','='),     ASSOC_RIGHT, 2,  0 },
     { "|=",  2, opid2('|','='),     ASSOC_RIGHT, 2,  0 },
 
-    { ":",   3, opid2(':','?'),     ASSOC_RIGHT, 1,  0 },
+    { ":",   0, opid2(':','?'),     ASSOC_RIGHT, 1,  0 },
 
     { ",",   2, opid1(','),         ASSOC_LEFT,  0,  0 }
 };
 
     { ",",   2, opid1(','),         ASSOC_LEFT,  0,  0 }
 };