소스 검색

ImStrnicmp tweak

ocornut 10 년 전
부모
커밋
38164a410d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      imgui.cpp

+ 1 - 1
imgui.cpp

@@ -442,7 +442,7 @@ static int ImStrnicmp(const char* str1, const char* str2, int count)
 {
     int d = 0;
     while (count > 0 && (d = toupper(*str2) - toupper(*str1)) == 0 && *str1) { str1++; str2++; count--; }
-    return (count == 0) ? 0 : d;
+    return d;
 }
 
 static char* ImStrdup(const char *str)