1
0
mirror of https://github.com/cc65/cc65.git synced 2025-01-11 11:30:13 +00:00

Fixed a bug

git-svn-id: svn://svn.cc65.org/cc65/trunk@3458 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2005-04-14 20:36:50 +00:00
parent feacac1394
commit 6170017f07

View File

@ -619,7 +619,7 @@ static void StudyPlus (ExprNode* Expr, ExprDesc* D)
StudyExprInternal (Expr->Right, &Right);
/* Check if we can handle the operation */
if (ED_IsValid (D) || ED_IsValid (&Right)) {
if (ED_IsValid (D) && ED_IsValid (&Right)) {
/* Add both */
ED_Add (D, &Right);
@ -654,7 +654,7 @@ static void StudyMinus (ExprNode* Expr, ExprDesc* D)
StudyExprInternal (Expr->Right, &Right);
/* Check if we can handle the operation */
if (ED_IsValid (D) || ED_IsValid (&Right)) {
if (ED_IsValid (D) && ED_IsValid (&Right)) {
/* Subtract both */
ED_Sub (D, &Right);