From: Bruno Haible Date: Sat, 27 Apr 2019 02:08:26 +0000 (+0200) Subject: libxml: Fix width of fprintf argument on native Windows. X-Git-Tag: v0.20~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9ad4a9aa0de747be7a9347d69d2f1eb04a0e517;p=thirdparty%2Fgettext.git libxml: Fix width of fprintf argument on native Windows. * gnulib-local/lib/libxml/timsort.h (TIM_SORT_RESIZE): Cast fprintf argument to 'unsigned long'. --- diff --git a/gnulib-local/lib/libxml/timsort.h b/gnulib-local/lib/libxml/timsort.h index 795f27214..9369e7c6c 100644 --- a/gnulib-local/lib/libxml/timsort.h +++ b/gnulib-local/lib/libxml/timsort.h @@ -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;