Commit 478f7b6c authored by Michael Beck's avatar Michael Beck
Browse files

- when printing tarvals, differentiate between tarval_bad and tarval_undefined

parent 04a4e050
...@@ -1564,7 +1564,11 @@ int tarval_snprintf(char *buf, size_t len, tarval *tv) { ...@@ -1564,7 +1564,11 @@ int tarval_snprintf(char *buf, size_t len, tarval *tv) {
case irms_control_flow: case irms_control_flow:
case irms_memory: case irms_memory:
case irms_auxiliary: case irms_auxiliary:
return snprintf(buf, len, "<TV_OVERFLOW_BAD>"); if (tv == tarval_bad)
return snprintf(buf, len, "<TV_BAD>");
if (tv == tarval_undefined)
return snprintf(buf, len, "<TV_UNDEF>");
return snprintf(buf, len, "<TV_???>");
} }
return 0; return 0;
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