about summary refs log tree commit diff
path: root/locale/programs/stringtrans.c
diff options
context:
space:
mode:
Diffstat (limited to 'locale/programs/stringtrans.c')
-rw-r--r--locale/programs/stringtrans.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/locale/programs/stringtrans.c b/locale/programs/stringtrans.c
index 6958dd2df8..4351eea397 100644
--- a/locale/programs/stringtrans.c
+++ b/locale/programs/stringtrans.c
@@ -93,7 +93,7 @@ translate_string (char *str, struct charset_t *charset)
 	}
 
       value = charset_find_value (charset, str + 1, tp - (str + 1));
-      if (value == ILLEGAL_CHAR_VALUE)
+      if ((wchar_t) value == ILLEGAL_CHAR_VALUE)
 	{
 	  free (buf);
 	  return NULL;