Skip to content

Commit 3fcd520

Browse files
committed
kill warning
1 parent 27cc3a2 commit 3fcd520

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/adios2/toolkit/transport/file/FileHTTP.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,8 @@ void FileHTTP::Read(char *buffer, size_t size, size_t start)
245245
size_t bytes_recd = 0;
246246
while (bytes_recd < size)
247247
{
248-
int remaining = (int)(size - bytes_recd);
249-
int read_len = remaining < BUF_SIZE ? remaining : BUF_SIZE;
248+
size_t remaining = size - bytes_recd;
249+
int read_len = (int)(remaining < BUF_SIZE ? remaining : BUF_SIZE);
250250
nbytes_total = read(m_socketFileDescriptor, buffer + bytes_recd, read_len);
251251
if (nbytes_total == -1)
252252
{

0 commit comments

Comments
 (0)