From b532a21176e3f2b1571eef5496288b143fcc9ecc Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Sun, 4 Nov 2007 12:45:41 +0000 Subject: [PATCH] a gcc 4.2 patch from Shu-Yu svn: r7637 --- src/mred/wxme/wx_keym.cxx | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/mred/wxme/wx_keym.cxx b/src/mred/wxme/wx_keym.cxx index c2b985ba6a..3c4482364c 100644 --- a/src/mred/wxme/wx_keym.cxx +++ b/src/mred/wxme/wx_keym.cxx @@ -512,14 +512,20 @@ static long GetCode(wxchar *keyseq, int *_kp, int *fullset) if (i >= MAX_BUF - 1) return 0; buffer[i] = keyseq[kp]; - if (buffer[i] < 128) - buffer[i] = tolower(buffer[i]); + if (buffer[i] < 128) { + wxchar t; + t = tolower(buffer[i]); + buffer[i] = t; + } } buffer[i] = 0; code = 0; if (buffer[1]) { - if (buffer[0] < 128) - buffer[0] = tolower(buffer[0]); + if (buffer[0] < 128) { + wxchar t; + t = tolower(buffer[0]); + buffer[0] = t; + } for (i = 0; keylist[i].str; i++) { if (!wx_c_strcmp(buffer, keylist[i].str)) { code = keylist[i].code;