Fix type cast warnings in LabWindows/CVI
| | |
| | | scpi_result_t SCPI_CoreEse(scpi_t * context) { |
| | | int32_t new_ESE; |
| | | if (SCPI_ParamInt(context, &new_ESE, TRUE)) { |
| | | SCPI_RegSet(context, SCPI_REG_ESE, new_ESE); |
| | | SCPI_RegSet(context, SCPI_REG_ESE, (scpi_reg_val_t)new_ESE); |
| | | } |
| | | return SCPI_RES_OK; |
| | | } |
| | |
| | | scpi_result_t SCPI_CoreSre(scpi_t * context) { |
| | | int32_t new_SRE; |
| | | if (SCPI_ParamInt(context, &new_SRE, TRUE)) { |
| | | SCPI_RegSet(context, SCPI_REG_SRE, new_SRE); |
| | | SCPI_RegSet(context, SCPI_REG_SRE, (scpi_reg_val_t)new_SRE); |
| | | } |
| | | return SCPI_RES_OK; |
| | | } |
| | |
| | | * @param chr |
| | | * @return |
| | | */ |
| | | static int skipChr(lex_state_t * state, int chr) { |
| | | static int skipChr(lex_state_t * state, char chr) { |
| | | if (!iseos(state) && ischr(state, chr)) { |
| | | state->pos++; |
| | | return SKIP_OK; |
| | |
| | | return (c >= 0) && (c <= 0x7f); |
| | | } |
| | | |
| | | static void skipQuoteProgramData(lex_state_t * state, int quote) { |
| | | static void skipQuoteProgramData(lex_state_t * state, char quote) { |
| | | while (!iseos(state)) { |
| | | if (isascii7bit(state->pos[0]) && !ischr(state, quote)) { |
| | | state->pos++; |
| | |
| | | scpi_result_t SCPI_StatusQuestionableEnable(scpi_t * context) { |
| | | int32_t new_QUESE; |
| | | if (SCPI_ParamInt(context, &new_QUESE, TRUE)) { |
| | | SCPI_RegSet(context, SCPI_REG_QUESE, new_QUESE); |
| | | SCPI_RegSet(context, SCPI_REG_QUESE, (scpi_reg_val_t)new_QUESE); |
| | | } |
| | | return SCPI_RES_OK; |
| | | } |
| | |
| | | SCPI_LongToStr(len, block_header + 2, 10, 10); |
| | | |
| | | header_len = strlen(block_header + 2); |
| | | block_header[1] = header_len + '0'; |
| | | block_header[1] = (char)(header_len + '0'); |
| | | |
| | | result += writeData(context, block_header, header_len + 2); |
| | | result += writeData(context, data, len); |