libscpi/src/expression.c
@@ -193,7 +193,7 @@ size_t i = 0; while (scpiLex_DecimalNumericProgramData(state, ¶m)) { if (i < length) { SCPI_ParamToInt(context, ¶m, &values[i]); SCPI_ParamToInt32(context, ¶m, &values[i]); } if (scpiLex_SpecificCharacter(state, ¶m, '!')) { @@ -303,5 +303,11 @@ if (res == SCPI_EXPR_ERROR) { SCPI_ErrorPush(context, SCPI_ERROR_EXPRESSION_PARSING_ERROR); } if (res == SCPI_EXPR_NO_MORE) { if (!scpiLex_IsEos(&lex)) { res = SCPI_EXPR_ERROR; SCPI_ErrorPush(context, SCPI_ERROR_EXPRESSION_PARSING_ERROR); } } return res; }