From 6a570c60b014562bd473a22f061caad63ed8f561 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Tue, 1 Apr 2003 00:54:46 +0000 Subject: Support for VMS. --- gettext-tools/src/write-java.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gettext-tools/src/write-java.c') diff --git a/gettext-tools/src/write-java.c b/gettext-tools/src/write-java.c index c9b7476..0958e90 100644 --- a/gettext-tools/src/write-java.c +++ b/gettext-tools/src/write-java.c @@ -125,7 +125,7 @@ string_hashcode (const char *str) while (str < str_limit) { unsigned int uc; - str += u8_mbtouc (&uc, str, str_limit - str); + str += u8_mbtouc (&uc, (const unsigned char *) str, str_limit - str); if (uc < 0x10000) /* Single UCS-2 'char'. */ hash = 31 * hash + uc; @@ -338,7 +338,7 @@ write_java_string (FILE *stream, const char *str) while (str < str_limit) { unsigned int uc; - str += u8_mbtouc (&uc, str, str_limit - str); + str += u8_mbtouc (&uc, (const unsigned char *) str, str_limit - str); if (uc < 0x10000) { /* Single UCS-2 'char'. */ -- cgit v1.1