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:
parent
4bc26e78ca
commit
8a1dd3868a
1 changed files with 2 additions and 2 deletions
|
|
@ -4358,9 +4358,9 @@ exprcompound : expr PLUS expr {
|
||||||
$$.type = $2.type;
|
$$.type = $2.type;
|
||||||
}
|
}
|
||||||
| PLUS expr %prec UMINUS {
|
| PLUS expr %prec UMINUS {
|
||||||
$$.val = NewStringf("%s",$2.val);
|
$$.val = NewStringf("+%s",$2.val);
|
||||||
$$.type = $2.type;
|
$$.type = $2.type;
|
||||||
}
|
}
|
||||||
| NOT expr {
|
| NOT expr {
|
||||||
$$.val = NewStringf("~%s",$2.val);
|
$$.val = NewStringf("~%s",$2.val);
|
||||||
$$.type = $2.type;
|
$$.type = $2.type;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue