about summary refs log tree commit diff
path: root/localedata/tests-mbwc/tst_mbsrtowcs.c
diff options
context:
space:
mode:
Diffstat (limited to 'localedata/tests-mbwc/tst_mbsrtowcs.c')
-rw-r--r--localedata/tests-mbwc/tst_mbsrtowcs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/localedata/tests-mbwc/tst_mbsrtowcs.c b/localedata/tests-mbwc/tst_mbsrtowcs.c
index f9faeee196..3f3ea716b4 100644
--- a/localedata/tests-mbwc/tst_mbsrtowcs.c
+++ b/localedata/tests-mbwc/tst_mbsrtowcs.c
@@ -63,7 +63,7 @@ tst_mbsrtowcs (FILE * fp, int debug_flg)
 
 	if (debug_flg)
 	  {
-	    fprintf (stderr, "mbsrtowcs: [ %d ] : ret = %d\n", rec + 1, ret);
+	    fprintf (stderr, "mbsrtowcs: [ %d ] : ret = %zd\n", rec + 1, ret);
 	  }
 
 	TST_IF_RETURN (S_MBSRTOWCS)
@@ -82,7 +82,8 @@ tst_mbsrtowcs (FILE * fp, int debug_flg)
 	      {
 		fprintf (stderr,
 			 "mbsrtowcs: ws[%d] => 0x%lx : 0x%lx <= ws_ex[%d]\n",
-			 i, ws[i], ws_ex[i], i);
+			 i, (unsigned long int) ws[i],
+			 (unsigned long int) ws_ex[i], i);
 	      }
 
 	    if (ws[i] != ws_ex[i])