Skip to content

Commit 244a216

Browse files
committed
[C++] Warnings cleanup.
1 parent 08c74a9 commit 244a216

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sbe-tool/src/main/cpp/otf/IrDecoder.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
#include <sys/uio.h>
2929
#include <unistd.h>
3030
#include <sys/stat.h>
31-
#include <stdint.h>
3231
#endif /* WIN32 */
3332

3433
#include <memory>
@@ -166,7 +165,8 @@ class IrDecoder
166165
int fd = fileno(fptr);
167166
while (remaining > 0)
168167
{
169-
ssize_t sz = ::read(fd, buffer + (length - remaining), 4098 < remaining ? 4098 : remaining);
168+
unsigned int bytes = static_cast<unsigned int>(4098 < remaining ? 4098 : remaining);
169+
long long sz = ::read(fd, buffer + (length - remaining), bytes);
170170
remaining -= sz;
171171
if (sz < 0)
172172
{

0 commit comments

Comments
 (0)