COMP: Fix warning about printf format and given type.
This commit is contained in:
parent
627f552ce5
commit
cecf8bf26a
|
@ -389,7 +389,8 @@ int cmDependsJavaParserHelper::LexInput(char* buf, int maxlen)
|
||||||
}
|
}
|
||||||
void cmDependsJavaParserHelper::Error(const char* str)
|
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;
|
int cc;
|
||||||
std::cerr << "String: [";
|
std::cerr << "String: [";
|
||||||
for ( cc = 0; cc < 30 && *(this->InputBuffer.c_str() + this->InputBufferPos + cc);
|
for ( cc = 0; cc < 30 && *(this->InputBuffer.c_str() + this->InputBufferPos + cc);
|
||||||
|
|
Loading…
Reference in New Issue