drawbuffer:fix compile error on windows

This commit is contained in:
adsim 2020-10-22 14:28:57 +08:00 committed by Jacopo Bartiromo
parent b1fe99b7df
commit d1321419b2
1 changed files with 1 additions and 1 deletions

View File

@ -419,7 +419,7 @@ SimpleWaypointPtr LocalizationStage::AssignLaneChange(const ActorId actor_id,
void LocalizationStage::DrawBuffer(Buffer &buffer) {
uint64_t buffer_size = buffer.size();
uint64_t step_size = std::max(buffer_size/20u, 1ul);
uint64_t step_size = std::max(buffer_size/20u, static_cast<uint64_t>(1));
cc::DebugHelper::Color color {0u, 0u, 0u};
cg::Location two_meters_up = cg::Location(0.0f, 0.0f, 2.0f);
for (uint64_t i = 0u; i + step_size < buffer_size; i += step_size) {