Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wnarrowing on raspberry pi #83

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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
2 changes: 1 addition & 1 deletion sdk/src/arch/linux/net_socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ u_result SocketAddress::getAddressAsString(char * buffer, size_t buffersize) con

break;
}
return ans<=0?RESULT_OPERATION_FAIL:RESULT_OK;
return ans==NULL?RESULT_OPERATION_FAIL:RESULT_OK;
}


Expand Down
4 changes: 2 additions & 2 deletions 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<unsigned long long int>(_dataEvt.wait(timeout)))
{
case rp::hal::Event::EVENT_TIMEOUT:
count = 0;
Expand Down Expand Up @@ -1984,4 +1984,4 @@ namespace sl {
{
return new SlamtecLidarDriver();
}
}
}