Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion include/pbf_processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#define _READ_PBF_H

#include <atomic>
#include <ios>
#include <string>
#include <unordered_set>
#include <vector>
Expand All @@ -20,7 +21,7 @@ extern const std::string OptionSortTypeThenID;
extern const std::string OptionLocationsOnWays;

struct BlockMetadata {
long int offset;
std::streamoff offset;
int32_t length;
bool hasNodes;
bool hasWays;
Expand Down
2 changes: 1 addition & 1 deletion src/pbf_processor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ int PbfProcessor::ReadPbfFile(
break;
}

blocks[blocks.size()] = { (long int)infile->tellg(), bh.datasize, true, true, true, 0, 1 };
blocks[blocks.size()] = { static_cast<std::streamoff>(infile->tellg()), bh.datasize, true, true, true, 0, 1 };
infile->seekg(bh.datasize, std::ios_base::cur);
}

Expand Down