Skip to content
Snippets Groups Projects
Commit 4e30b97c authored by Dirk Zimoch's avatar Dirk Zimoch
Browse files

fix operators after ?

parent ec0b33f1
No related branches found
No related tags found
No related merge requests found
......@@ -187,7 +187,7 @@ static int parseSubExpr(const char **pp, long *v, int pr, int o)
long val3 = 0;
val2 = 1;
if (exprDebug) printf("parseExpr(%d) if %ld ...\n", pr, val);
if (parseExpr(&p, &val2) >= 0)
if ((o2 = parseExpr(&p, &val2)) >= 0)
{
if (parseSep(&p, ":"))
{
......
......@@ -72,8 +72,8 @@ x=1-1?0?1:2:3?4:5
x=1-1?0?1:2:3-3?4:5
# $(x) should be: 5
x=0?; 1?; 2?; -4?
# $(x) should be: 0; 1; 1; 1
x=0?; 1?; 2?; -4?; 3?+1
# $(x) should be: 0; 1; 1; 1; 4
x=a030b a(030)b a( 030 )b "a"030"b" a(%x 030)b
# $(x) should be: a030b a24b a24b a24b a18b
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment