Commit e157c63d authored by ekrisza's avatar ekrisza
Browse files

we already know what the error message will be.


Signed-off-by: default avatarekrisza <ekrisza@HU00060815.ericsson.se>
parent 296719c6
......@@ -604,7 +604,8 @@ int char2int(char value)
int char2int(const char *value)
{
if (value == NULL) value = "";
if (value == NULL) TTCN_error("The length of the argument in function "
"char2int() must be exactly 1 instead of 0.");
int value_length = strlen(value);
if (value_length != 1) TTCN_error("The length of the argument in function "
"char2int() must be exactly 1 instead of %d.", value_length);
......
Markdown is supported
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