Fixed "bloody hell" expression evaluation problem.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4638 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2003-03-27 22:58:40 +00:00
commit 8a1dd3868a

View file

@ -4358,9 +4358,9 @@ exprcompound : expr PLUS expr {
$$.type = $2.type;
}
| PLUS expr %prec UMINUS {
$$.val = NewStringf("%s",$2.val);
$$.val = NewStringf("+%s",$2.val);
$$.type = $2.type;
}
}
| NOT expr {
$$.val = NewStringf("~%s",$2.val);
$$.type = $2.type;