summaryrefslogtreecommitdiff
path: root/libc/stdio/_wfwrite.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-12-21 14:50:55 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-12-21 14:50:55 +0000
commitc6df9c945232b76340e298946b51684441f549fc (patch)
tree488259fdb9d5be8d536218301104b036541a97df /libc/stdio/_wfwrite.c
parenteebbc87bcc8d5bc6916870b7dd6cc4603f728a94 (diff)
more of warning fixes, mostly pointer signedness mismatches
Diffstat (limited to 'libc/stdio/_wfwrite.c')
-rw-r--r--libc/stdio/_wfwrite.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/stdio/_wfwrite.c b/libc/stdio/_wfwrite.c
index 8fa59f87d..81f5bd4e8 100644
--- a/libc/stdio/_wfwrite.c
+++ b/libc/stdio/_wfwrite.c
@@ -38,7 +38,7 @@ size_t attribute_hidden _wstdio_fwrite(const wchar_t *__restrict ws, size_t n,
}
if (count) {
wmemcpy((wchar_t *)(stream->__bufpos), ws, count);
- stream->__bufpos = (char *)(((wchar_t *)(stream->__bufpos)) + count);
+ stream->__bufpos = (unsigned char *)(((wchar_t *)(stream->__bufpos)) + count);
}
__STDIO_STREAM_VALIDATE(stream);
return n;
@@ -59,7 +59,7 @@ size_t attribute_hidden _wstdio_fwrite(const wchar_t *__restrict ws, size_t n,
++r; /* 0 is returned when nul is reached. */
pw = ws + count + r; /* pw was set to NULL, so correct. */
}
- if (__stdio_fwrite(buf, r, stream) == r) {
+ if (__stdio_fwrite((const unsigned char *)buf, r, stream) == r) {
count = pw - ws;
continue;
}