From deae06da9f6a9b99b20d33d0111c8f358e38f1a8 Mon Sep 17 00:00:00 2001 From: Jan Breuer <jan.breuer@jaybee.cz> Date: 周一, 10 8月 2015 20:08:37 +0800 Subject: [PATCH] Resolve #39: Correct handling of unsigned integers --- libscpi/src/ieee488.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libscpi/src/ieee488.c b/libscpi/src/ieee488.c index e91d62a..0593d23 100644 --- a/libscpi/src/ieee488.c +++ b/libscpi/src/ieee488.c @@ -212,7 +212,7 @@ 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; } @@ -302,7 +302,7 @@ 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; } -- Gitblit v1.9.1