From 9891ee5a2aadd2672d8d7f6b217e852344ff86eb Mon Sep 17 00:00:00 2001 From: Vladislav Vaintroub Date: Fri, 12 Jan 2018 18:25:02 +0000 Subject: Fix and reenable Windows compiler warning C4800 (size_t conversion). --- strings/ctype-ucs2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'strings/ctype-ucs2.c') diff --git a/strings/ctype-ucs2.c b/strings/ctype-ucs2.c index cba44afc926..80bb6745b19 100644 --- a/strings/ctype-ucs2.c +++ b/strings/ctype-ucs2.c @@ -1078,7 +1078,7 @@ my_fill_mb2(CHARSET_INFO *cs, char *s, size_t slen, int fill) } -static int +static size_t my_vsnprintf_mb2(char *dst, size_t n, const char* fmt, va_list ap) { char *start=dst, *end= dst + n - 1; @@ -2327,7 +2327,7 @@ my_charlen_utf32(CHARSET_INFO *cs __attribute__((unused)), /* Defines my_well_formed_char_length_utf32 */ -static int +static size_t my_vsnprintf_utf32(char *dst, size_t n, const char* fmt, va_list ap) { char *start= dst, *end= dst + n; -- cgit v1.2.1