summaryrefslogtreecommitdiffstats
path: root/gettext-tools/src/write-java.c
diff options
context:
space:
mode:
Diffstat (limited to 'gettext-tools/src/write-java.c')
-rw-r--r--gettext-tools/src/write-java.c4
1 files changed, 2 insertions, 2 deletions
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'. */