]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
libxml: Fix width of fprintf argument on native Windows.
authorBruno Haible <bruno@clisp.org>
Sat, 27 Apr 2019 02:08:26 +0000 (04:08 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 27 Apr 2019 02:08:26 +0000 (04:08 +0200)
* gnulib-local/lib/libxml/timsort.h (TIM_SORT_RESIZE): Cast fprintf argument to
'unsigned long'.

gnulib-local/lib/libxml/timsort.h

index 795f2721443bd10dfd1ca94a0f6684e4c12dec75..9369e7c6c21176e6b29063f85de423f0161158a6 100644 (file)
@@ -323,7 +323,7 @@ static void TIM_SORT_RESIZE(TEMP_STORAGE_T *store, const size_t new_size)
     SORT_TYPE *tempstore = (SORT_TYPE *)realloc(store->storage, new_size * sizeof(SORT_TYPE));
     if (tempstore == NULL)
     {
-      fprintf(stderr, "Error allocating temporary storage for tim sort: need %lu bytes", sizeof(SORT_TYPE) * new_size);
+      fprintf(stderr, "Error allocating temporary storage for tim sort: need %lu bytes", (unsigned long) (sizeof(SORT_TYPE) * new_size));
       exit(1);
     }
     store->storage = tempstore;