提交 5ad58a59 编写于 作者: G Grissiom

minilibc: no double braces in if statement

上级 a95370aa
...@@ -146,10 +146,10 @@ int strncasecmp ( const char* s1, const char* s2, size_t len ) ...@@ -146,10 +146,10 @@ int strncasecmp ( const char* s1, const char* s2, size_t len )
x1 = *s1 - 'A'; if ((x1 < 26u)) x1 += 32; x1 = *s1 - 'A'; if ((x1 < 26u)) x1 += 32;
s1++; s2++; s1++; s2++;
if ((x2 != x1)) if (x2 != x1)
break; break;
if ((x1 == (unsigned int)-'A')) if (x1 == (unsigned int)-'A')
break; break;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册