OSDN Git Service
(root)
/
android-x86
/
bionic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55cd827
)
Fix build (signed char issue).
author
Elliott Hughes
<enh@google.com>
Tue, 29 Apr 2014 23:05:58 +0000
(16:05 -0700)
committer
Elliott Hughes
<enh@google.com>
Tue, 29 Apr 2014 23:05:58 +0000
(16:05 -0700)
Change-Id: I05d78f4c1599ed9a0c1285f9eb1e89bc2f55c24d
libc/bionic/wchar.cpp
patch
|
blob
|
history
diff --git
a/libc/bionic/wchar.cpp
b/libc/bionic/wchar.cpp
index
4e62f61
..
e466c91
100644
(file)
--- 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<uint8_t>((*src)[i])
> 0x7f) {
errno = EILSEQ;
if (dst != NULL) {
*src = &(*src)[i];