forked from epics_driver_modules/require
fix operators after ?
This commit is contained in:
@@ -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, ":"))
|
||||
{
|
||||
|
||||
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user