From a6aeab3ad813515b3a238c856bc61a2a8c88c283 Mon Sep 17 00:00:00 2001 From: paladin-t Date: Fri, 19 Feb 2016 17:33:03 +0800 Subject: [PATCH] *simplified code. --- core/my_basic.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/my_basic.c b/core/my_basic.c index 2aa4896..3ee4f53 100755 --- a/core/my_basic.c +++ b/core/my_basic.c @@ -4811,8 +4811,7 @@ static int _parse_char(mb_interpreter_t* s, char c, int pos, unsigned short row, context->current_char = c; if(context->parsing_state == _PS_NORMAL) { - if(c >= 'a' && c <= 'z') - c += 'A' - 'a'; + c = toupper(c); if(_is_blank(c)) { /* \t ' ' */ _mb_check(result = _cut_symbol(s, pos, row, col), _exit);