diff --git a/Graphics/gl2ps.cpp b/Graphics/gl2ps.cpp index b6bdc823db59c7d53c89e4282a2e1fc975c98762..3e8b01d507a77e5340f3dfc469d41cf3a1aeb6b5 100644 --- a/Graphics/gl2ps.cpp +++ b/Graphics/gl2ps.cpp @@ -428,7 +428,7 @@ static int gl2psPrintf(const char* fmt, ...) #if !defined(GL2PS_HAVE_NO_VSNPRINTF) /* Try writing the string to a 1024 byte buffer. If it is too small to fit, keep trying larger sizes until it does. */ - size_t bufsize = sizeof(buf); + int bufsize = sizeof(buf); #endif if(gl2ps->options & GL2PS_COMPRESS){ va_start(args, fmt);