From 770491fb4ff85891bbe71aaf4dcec7f22e53abdb Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Tue, 29 Apr 2014 16:05:58 -0700 Subject: [PATCH] Fix build (signed char issue). Change-Id: I05d78f4c1599ed9a0c1285f9eb1e89bc2f55c24d --- libc/bionic/wchar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/bionic/wchar.cpp b/libc/bionic/wchar.cpp index 4e62f6197..e466c9122 100644 --- a/libc/bionic/wchar.cpp +++ b/libc/bionic/wchar.cpp @@ -173,7 +173,7 @@ size_t mbsnrtowcs(wchar_t* dst, const char** src, size_t n, size_t dst_size, mbs 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((*src)[i]) > 0x7f) { errno = EILSEQ; if (dst != NULL) { *src = &(*src)[i];