From b5b89546cac76aeb6d18b36418edda2175f88eca Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Fri, 25 Mar 2011 00:56:14 +0100 Subject: _scanf.c: fix to signedness warnings Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer --- libc/stdio/_scanf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libc/stdio') diff --git a/libc/stdio/_scanf.c b/libc/stdio/_scanf.c index 0adb5f5af..9aa1d52e8 100644 --- a/libc/stdio/_scanf.c +++ b/libc/stdio/_scanf.c @@ -377,9 +377,9 @@ int vswscanf(const wchar_t * __restrict str, const wchar_t * __restrict format, FILE f; f.__bufstart = - f.__bufpos = (char *) str; + f.__bufpos = (unsigned char *) str; f.__bufread = - f.__bufend = (char *)(str + wcslen(str)); + f.__bufend = (unsigned char *)(str + wcslen(str)); __STDIO_STREAM_DISABLE_GETC(&f); __STDIO_STREAM_DISABLE_PUTC(&f); -- cgit v1.2.3