From eb5ee448e54fafad4d358fb16c438cb24506774a Mon Sep 17 00:00:00 2001 From: Daniel_Cortez Date: Mon, 30 Oct 2017 19:09:19 +0700 Subject: [PATCH] emit/__emit: Use case-sensitive search in emit_findopcode() The instruction name is copied in lower case anyway (see emit_parse_line()). --- source/compiler/sc1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/compiler/sc1.c b/source/compiler/sc1.c index 3e19e67..dfbe8b9 100644 --- a/source/compiler/sc1.c +++ b/source/compiler/sc1.c @@ -6303,7 +6303,7 @@ static int emit_findopcode(const char *instr,int maxlen) while (low0) low=mid+1; else @@ -6311,7 +6311,7 @@ static int emit_findopcode(const char *instr,int maxlen) } /* while */ assert(low==high); - if (stricmp(instr,emit_opcodelist[low].name)==0) + if (strcmp(instr,emit_opcodelist[low].name)==0) return low; /* found */ return 0; /* not found, return special index */ }