From a89d307bcecd7bc1572fba7465433bb6de22472e Mon Sep 17 00:00:00 2001 From: Mathieu Malaterre <mathieu.malaterre@gmail.com> Date: Tue, 13 May 2008 05:18:51 -0400 Subject: [PATCH] ENH: all ctype function have the same issue: char can be signed or unsigned, since isspace only deal with >=0 value (except EOF) one has to first cast it to unsigned char --- ProcessUNIX.c | 2 +- kwsysDateStamp.cmake | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ProcessUNIX.c b/ProcessUNIX.c index 219640a..757dc91 100644 --- a/ProcessUNIX.c +++ b/ProcessUNIX.c @@ -2807,7 +2807,7 @@ static char** kwsysProcessParseVerbatimCommand(const char* command) } } } - else if(isspace((int) *c)) + else if(isspace((unsigned char) *c)) { if(in_argument) { diff --git a/kwsysDateStamp.cmake b/kwsysDateStamp.cmake index e5ce8f8..a35740d 100644 --- a/kwsysDateStamp.cmake +++ b/kwsysDateStamp.cmake @@ -7,4 +7,4 @@ SET(KWSYS_DATE_STAMP_YEAR 2008) SET(KWSYS_DATE_STAMP_MONTH 05) # KWSys version date day component. Format is DD. -SET(KWSYS_DATE_STAMP_DAY 12) +SET(KWSYS_DATE_STAMP_DAY 13) -- GitLab