Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Nate Koenig <nate@openrobotics.org>
  • Loading branch information
Nate Koenig committed Feb 9, 2021
1 parent 74468b4 commit 80427ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/ignition/rendering/base/BaseGpuRays.hh
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ namespace ignition
//////////////////////////////////////////////////
int BaseGpuRays<T>::RangeCount() const
{
return this->RayCount() * this->hResolution;
return static_cast<int>(this->RayCount() * this->hResolution);
}

template <class T>
Expand All @@ -381,7 +381,7 @@ namespace ignition
//////////////////////////////////////////////////
int BaseGpuRays<T>::VerticalRangeCount() const
{
return this->VerticalRayCount() * this->vResolution;
return static_cast<int>(this->VerticalRayCount() * this->vResolution);
}

template <class T>
Expand Down

0 comments on commit 80427ef

Please sign in to comment.