Skip to content

Commit

Permalink
Add static cast to avoid narrowing error
Browse files Browse the repository at this point in the history
Signed-off-by: Francisco Martín Rico <[email protected]>
  • Loading branch information
fmrico committed Nov 18, 2021
1 parent ed61505 commit b3b5fe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/src/sl_lidar_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ namespace sl {

sl_result grabScanDataHq(sl_lidar_response_measurement_node_hq_t* nodebuffer, size_t& count, sl_u32 timeout = DEFAULT_TIMEOUT)
{
switch (_dataEvt.wait(timeout))
switch (static_cast<int>(_dataEvt.wait(timeout)))
{
case rp::hal::Event::EVENT_TIMEOUT:
count = 0;
Expand Down

0 comments on commit b3b5fe1

Please sign in to comment.