diff options
Diffstat (limited to 'libgcobol/valconv.cc')
-rw-r--r-- | libgcobol/valconv.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgcobol/valconv.cc b/libgcobol/valconv.cc index 0b80d72..33d9a0d 100644 --- a/libgcobol/valconv.cc +++ b/libgcobol/valconv.cc @@ -252,8 +252,8 @@ __gg__string_to_numeric_edited( char * const dest, if( dlength >= 2 ) { // It's a positive number, so we might have to get rid of a CR or DB: - char ch1 = toupper(dest[dlength-2]); - char ch2 = toupper(dest[dlength-1]); + char ch1 = toupper((unsigned char)dest[dlength-2]); + char ch2 = toupper((unsigned char)dest[dlength-1]); if( (ch1 == ascii_D && ch2 == ascii_B) || (ch1 == ascii_C && ch2 == ascii_R) ) { |