summary refs log tree commit diff
path: root/locale
diff options
context:
space:
mode:
Diffstat (limited to 'locale')
-rw-r--r--locale/programs/ld-ctype.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/locale/programs/ld-ctype.c b/locale/programs/ld-ctype.c
index 704ccfc9b8..6fa3448174 100644
--- a/locale/programs/ld-ctype.c
+++ b/locale/programs/ld-ctype.c
@@ -1482,8 +1482,10 @@ charclass_symbolic_ellipsis (struct linereader *ldfile,
 	  struct charseq *seq;
 	  uint32_t wch;
 
-	  sprintf (tmp, (base == 10 ? "%.*s%0*ld" : "%.*s%0*lX"), cp - last_str,
-		   last_str, (int) (now->val.str.lenmb - (cp - last_str)), from);
+	  sprintf (tmp, (base == 10 ? "%.*s%0*ld" : "%.*s%0*lX"),
+		   cp - last_str, last_str,
+		   (int) (now->val.str.lenmb - (int) (cp - last_str)),
+		   from);
 
 	  get_character (now, charmap, repertoire, &seq, &wch);