From 1cf2c568c9a8d3a515254036916219d1b12de4d0 Mon Sep 17 00:00:00 2001 From: Jan Breuer <jan.breuer@jaybee.cz> Date: 周二, 13 10月 2015 00:49:16 +0800 Subject: [PATCH] Resolve #57: SCPI_ExprChannelListEntry() crashes with whitespaces --- libscpi/inc/scpi/types.h | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/libscpi/inc/scpi/types.h b/libscpi/inc/scpi/types.h index 1d7277b..fab9b37 100644 --- a/libscpi/inc/scpi/types.h +++ b/libscpi/inc/scpi/types.h @@ -52,14 +52,14 @@ #endif #if !HAVE_STDBOOL - typedef unsigned char bool; + typedef unsigned char bool; #endif #ifndef FALSE - #define FALSE 0 +#define FALSE 0 #endif #ifndef TRUE - #define TRUE (!FALSE) +#define TRUE (!FALSE) #endif /* basic data types */ @@ -255,6 +255,7 @@ struct _scpi_number_parameter_t { scpi_bool_t special; + union { double value; int32_t tag; -- Gitblit v1.9.1