Commit 1231c62d authored by Michael Beck's avatar Michael Beck
Browse files

fixed sc_val_from_str()

[r6911]
parent ca0508a0
......@@ -305,7 +305,7 @@ tarval *new_tarval_from_str(const char *str, size_t len, ir_mode *mode)
case irms_int_number:
case irms_character:
sc_val_from_str(str, len, NULL);
sc_val_from_str(str, len, NULL, mode);
return get_tarval(sc_get_buffer(), sc_get_buffer_length(), mode);
case irms_reference:
......@@ -949,7 +949,6 @@ tarval *tarval_convert_to(tarval *src, ir_mode *m)
break;
}
return get_tarval(fc_get_buffer(), fc_get_buffer_length(), m);
#if 0
case irms_reference:
/* allow 0 to be casted */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment