Use %zd for size_t printf argument
`long` and %ld are always 32-bit on MSVC.
This commit is contained in:
@@ -462,7 +462,7 @@ void CLD2_Debug2(const char* text,
|
||||
|
||||
void DumpResultChunkVector(FILE* f, const char* src,
|
||||
ResultChunkVector* resultchunkvector) {
|
||||
fprintf(f, "DumpResultChunkVector[%ld]<br>\n", resultchunkvector->size());
|
||||
fprintf(f, "DumpResultChunkVector[%zd]<br>\n", resultchunkvector->size());
|
||||
for (int i = 0; i < static_cast<int>(resultchunkvector->size()); ++i) {
|
||||
ResultChunk* rc = &(*resultchunkvector)[i];
|
||||
Language lang1 = static_cast<Language>(rc->lang1);
|
||||
|
Reference in New Issue
Block a user