From 2f881ca56aee8de4a7e6aae2e4b283625f9ff3e7 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 9 Apr 2021 15:28:56 +0200 Subject: -Werror,-Wformat (clang-cl) "format specifies type 'unsigned long' but the argument has type 'sal_uInt16' (aka 'unsigned short')" Change-Id: Ie5397be90ccb5678a97e7a3a0987b60b38ece4e5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113874 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- emfio/source/reader/wmfreader.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emfio/source/reader/wmfreader.cxx b/emfio/source/reader/wmfreader.cxx index 54c871d112e7..f15a6939c660 100644 --- a/emfio/source/reader/wmfreader.cxx +++ b/emfio/source/reader/wmfreader.cxx @@ -233,7 +233,7 @@ namespace // Yes, return a pointer to a static buffer. This is a very // local debugging output function, so no big deal. static char buffer[11]; - sprintf(buffer, "0x%08" SAL_PRIxUINT32, nRecType); + sprintf(buffer, "0x%08" SAL_PRIxUINT32, sal_uInt32(nRecType)); return buffer; } #endif -- cgit