From cecf8bf26a516354e1a937a8460940a54191e358 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 3 Feb 2005 08:39:37 -0500 Subject: COMP: Fix warning about printf format and given type. --- Source/cmDependsJavaParserHelper.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/cmDependsJavaParserHelper.cxx b/Source/cmDependsJavaParserHelper.cxx index fa90495..f0fc0b5 100644 --- a/Source/cmDependsJavaParserHelper.cxx +++ b/Source/cmDependsJavaParserHelper.cxx @@ -389,7 +389,8 @@ int cmDependsJavaParserHelper::LexInput(char* buf, int maxlen) } void cmDependsJavaParserHelper::Error(const char* str) { - fprintf(stderr, "JPError: %s (%d / Line: %d)\n", str, this->InputBufferPos, this->CurrentLine); + unsigned long pos = static_cast(this->InputBufferPos); + fprintf(stderr, "JPError: %s (%lu / Line: %d)\n", str, pos, this->CurrentLine); int cc; std::cerr << "String: ["; for ( cc = 0; cc < 30 && *(this->InputBuffer.c_str() + this->InputBufferPos + cc); -- cgit v0.12