*/
static void extend_ia32_am_offs(ir_node *node, char *offset, char op) {
ia32_attr_t *attr = get_ia32_attr(node);
- int o;
+ int res, o;
if (! offset || strlen(offset) < 1)
return;
- assert(sscanf(offset, "%d", &o) == 1);
+ res = sscanf(offset, "%d", &o);
+ assert(res == 1);
if (op == '-')
attr->am_offs -= o;
attr->cnst_val.tv = get_Const_tarval(cnst);
mode = get_tarval_mode(attr->cnst_val.tv);
if (mode_is_reference(mode) &&
- get_mode_null(mode) == attr->cnst_val.tv)
- attr->cnst_val.tv = get_mode_null(mode_Is);
+ get_mode_null(mode) == attr->cnst_val.tv) {
+ attr->cnst_val.tv = get_mode_null(mode_Iu);
+ }
attr->cnst = get_ident_for_tv(attr->cnst_val.tv);
break;
case iro_SymConst: