commit | c6e563c87a7d8329607bccbc5c4a61c4e1180507 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Tue Apr 29 23:06:37 2014 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Tue Apr 29 23:06:38 2014 +0000 |
tree | 26785c0a2a0116b48dbab002c915e26a7dc4c113 | |
parent | 55cd82762f3173247dc7e0eae2826aa24d22213a [diff] | |
parent | 770491fb4ff85891bbe71aaf4dcec7f22e53abdb [diff] |
Merge "Fix build (signed char issue)."
diff --git a/libc/bionic/wchar.cpp b/libc/bionic/wchar.cpp index 4e62f61..e466c91 100644 --- a/libc/bionic/wchar.cpp +++ b/libc/bionic/wchar.cpp
@@ -173,7 +173,7 @@ size_t o = 0; // Number of output characters written. for (; i < n && (*src)[i] != 0; ++i) { // TODO: UTF-8 support. - if ((*src)[i] > 0x7f) { + if (static_cast<uint8_t>((*src)[i]) > 0x7f) { errno = EILSEQ; if (dst != NULL) { *src = &(*src)[i];