From 083d0e012f917d5259d28825f4f283227bc10b25 Mon Sep 17 00:00:00 2001 From: wmayer Date: Sun, 19 Jul 2020 08:53:34 +0200 Subject: [PATCH] Coverity: Invalid printf format string --- src/Mod/Path/libarea/pyarea.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Mod/Path/libarea/pyarea.cpp b/src/Mod/Path/libarea/pyarea.cpp index f3fb2acbcb..3c5f6da546 100644 --- a/src/Mod/Path/libarea/pyarea.cpp +++ b/src/Mod/Path/libarea/pyarea.cpp @@ -46,8 +46,10 @@ static void print_curve(const CCurve& c) std::size_t nvertices = c.m_vertices.size(); #if defined SIZEOF_SIZE_T && SIZEOF_SIZE_T == 4 printf("number of vertices = %d\n", nvertices); -#else +#elif defined(_WIN32) printf("number of vertices = %Iu\n", nvertices); +#else + printf("number of vertices = %lu\n", nvertices); #endif int i = 0; for(std::list::const_iterator It = c.m_vertices.begin(); It != c.m_vertices.end(); It++, i++)