Browse Source

- fixed parameter using SAVE_int2uint()

development
Andreas Romeyke 10 months ago
parent
commit
fbeeaa7f7e
  1. 8
      src/parser/config_parser.c

8
src/parser/config_parser.c

@ -355,20 +355,20 @@ ret_t call_exec_function(ctiff_t * ctif, ret_t * retp, internal_entry_t * exep)
ret = check_tag_has_valuelist(ctif, exe.tag, count, values);
break;
}
case fc_tag_has_value_in_range: { int a = exe_i_pop(&exe);
int b = exe_i_pop(&exe);
case fc_tag_has_value_in_range: { unsigned int a = SAVE_int2uint(exe_i_pop(&exe));
unsigned int b = SAVE_int2uint(exe_i_pop(&exe));
expected_value = __ch_malloc(expected_value);
snprintf(expected_value, VALUESTRLEN, "%i -- %i", a, b);
ret = check_tag_has_value_in_range(ctif, exe.tag, a, b);
break;
}
case fc_tag_has_value: { int a = exe_i_pop(&exe);
case fc_tag_has_value: { unsigned int a = SAVE_int2uint(exe_i_pop(&exe));
expected_value = __ch_malloc(expected_value);
snprintf(expected_value, VALUESTRLEN, "%i", a);
ret = check_tag_has_value(ctif, exe.tag, a);
break;
}
case fc_tag_has_value_quiet: { int a = exe_i_pop(&exe);
case fc_tag_has_value_quiet: { unsigned int a = SAVE_int2uint(exe_i_pop(&exe));
expected_value = __ch_malloc(expected_value);
snprintf(expected_value, VALUESTRLEN, "%i", a);
ret = check_tag_has_value_quiet(ctif, exe.tag, a);

Loading…
Cancel
Save