We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08c74a9 commit 244a216Copy full SHA for 244a216
sbe-tool/src/main/cpp/otf/IrDecoder.h
@@ -28,7 +28,6 @@
28
#include <sys/uio.h>
29
#include <unistd.h>
30
#include <sys/stat.h>
31
-#include <stdint.h>
32
#endif /* WIN32 */
33
34
#include <memory>
@@ -166,7 +165,8 @@ class IrDecoder
166
165
int fd = fileno(fptr);
167
while (remaining > 0)
168
{
169
- ssize_t sz = ::read(fd, buffer + (length - remaining), 4098 < remaining ? 4098 : remaining);
+ unsigned int bytes = static_cast<unsigned int>(4098 < remaining ? 4098 : remaining);
+ long long sz = ::read(fd, buffer + (length - remaining), bytes);
170
remaining -= sz;
171
if (sz < 0)
172
0 commit comments