+2004-01-12 Bernhard Held <bernhard@bernhardheld.de>
+
+ * src/SDCCast.c (decorateType): fixed bug introduced today
+
2004-01-12 Borut Razem <borut.razem@siol.net>
* src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
if (astHasVolatile (pbody->left))
return FALSE;
-
+
if (astHasDeref(pbody->right)) return FALSE;
return isConformingBody (pbody->left, sym, body) &&
}
if (tree->opval.op == '>')
{
- tree->opval.op = '!';
- tree->right = NULL;
- LRVAL (tree) = 1;
- TTYPE (tree) = TETYPE (tree) = newCharLink ();
- return tree;
+ /* if the parent is an ifx, then we could do */
+ /* return tree->left; */
+ tree->opval.op = '?';
+ tree->right = newNode (':',
+ newAst_VALUE (constVal ("1")),
+ tree->right); /* val 0 */
+ tree->right->lineno = tree->lineno;
+ tree->right->left->lineno = tree->lineno;
+ decorateType (tree->right);
}
}
/* if they are both literal then */
ast_print(tree->left,outfile,indent+2);
ast_print(tree->right,outfile,indent+2);
return ;
-
+
/*------------------------------------------------------------------*/
/*----------------------------*/
/* assignment operators */