diff options
| author | Bernard Xiong <[email protected]> | 2014-04-13 08:35:09 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2014-04-13 08:35:09 +0800 |
| commit | 3022725f53b440d97e6c4f960f2abcc9cf4c5143 (patch) | |
| tree | 5dd94ddbce735341502845f32e5282e40578f6b5 /components/libc | |
| parent | 0c4ac4bd1a93ac1406f87f1d108c54bf14f57d28 (diff) | |
| parent | 5ad58a59a4374e47a69a4d7d78e56a7b03de1156 (diff) | |
Merge pull request #262 from grissiom/misc-fix
Misc fix
Diffstat (limited to 'components/libc')
| -rw-r--r-- | components/libc/minilibc/string.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/libc/minilibc/string.c b/components/libc/minilibc/string.c index 568e9795ef..4969ed2fc6 100644 --- a/components/libc/minilibc/string.c +++ b/components/libc/minilibc/string.c @@ -146,10 +146,10 @@ int strncasecmp ( const char* s1, const char* s2, size_t len ) x1 = *s1 - 'A'; if ((x1 < 26u)) x1 += 32; s1++; s2++; - if ((x2 != x1)) + if (x2 != x1) break; - if ((x1 == (unsigned int)-'A')) + if (x1 == (unsigned int)-'A') break; } |
