Skip to content

Commit 666a3d4

Browse files
committed
Eliminate some compilation warnings.
1 parent 4c5ef53 commit 666a3d4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sdk/src/arch/linux/net_socket.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ class _single_thread DGramSocketImpl : public DGramSocket
723723
assert(addr);
724724
size_t ans = ::sendto( _socket_fd, buffer, len, 0, addr, sizeof(sockaddr_storage));
725725
if (ans != (size_t)-1) {
726-
assert(ans == (int)len);
726+
assert(ans == len);
727727
return RESULT_OK;
728728
} else {
729729
switch (errno) {

sdk/src/sl_lidar_driver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ namespace sl {
175175
if (i == count) return SL_RESULT_OPERATION_FAIL;
176176

177177
//Tune tail
178-
for (i = count - 1; i >= 0; i--) {
178+
for (i = count - 1; i < count; i--) {
179179
if (getDistanceQ2(nodebuffer[i]) == 0) {
180180
continue;
181181
}

0 commit comments

Comments
 (0)