summaryrefslogtreecommitdiffstats
path: root/Source/cmDependsJavaParserHelper.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2005-02-03 13:39:37 (GMT)
committerBrad King <brad.king@kitware.com>2005-02-03 13:39:37 (GMT)
commitcecf8bf26a516354e1a937a8460940a54191e358 (patch)
tree6581b540511c10e258b2e81929010a20c826c517 /Source/cmDependsJavaParserHelper.cxx
parent627f552ce585d4e335fb11c375bc6108c02a42f2 (diff)
downloadCMake-cecf8bf26a516354e1a937a8460940a54191e358.zip
CMake-cecf8bf26a516354e1a937a8460940a54191e358.tar.gz
CMake-cecf8bf26a516354e1a937a8460940a54191e358.tar.bz2
COMP: Fix warning about printf format and given type.
Diffstat (limited to 'Source/cmDependsJavaParserHelper.cxx')
-rw-r--r--Source/cmDependsJavaParserHelper.cxx3
1 files changed, 2 insertions, 1 deletions
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<unsigned long>(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);