Skip to content
Snippets Groups Projects
Commit e794dc21 authored by Kristof Szabados's avatar Kristof Szabados
Browse files

correct the check.


Signed-off-by: default avatarKristof Szabados <Kristof.Szabados@ericsson.com>
parent 7d30197a
No related branches found
No related tags found
No related merge requests found
...@@ -2367,7 +2367,7 @@ void defUnionClass(struct_def const *sdef, output_struct *output) ...@@ -2367,7 +2367,7 @@ void defUnionClass(struct_def const *sdef, output_struct *output)
"if (%d == name_len && 0 == strncmp(fld_name, \"%s\", name_len)) {\n" "if (%d == name_len && 0 == strncmp(fld_name, \"%s\", name_len)) {\n"
" int ret_val = %s%s().JSON_decode(%s_descr_, p_tok, p_silent);\n" " int ret_val = %s%s().JSON_decode(%s_descr_, p_tok, p_silent);\n"
" if (0 > ret_val) {\n" " if (0 > ret_val) {\n"
" if (JSON_ERROR_INVALID_TOKEN) {\n" " if (JSON_ERROR_INVALID_TOKEN == ret_val) {\n"
" JSON_ERROR(TTCN_EncDec::ET_INVAL_MSG, JSON_DEC_FIELD_TOKEN_ERROR, %lu, \"%s\");\n" " JSON_ERROR(TTCN_EncDec::ET_INVAL_MSG, JSON_DEC_FIELD_TOKEN_ERROR, %lu, \"%s\");\n"
" }\n" " }\n"
" return JSON_ERROR_FATAL;\n" " return JSON_ERROR_FATAL;\n"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment