Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of HTTPClient by
Diff: data/HTTPFile.cpp
- Revision:
- 35:d9e2d1c96b75
- Parent:
- 34:3556275bebf3
diff -r 3556275bebf3 -r d9e2d1c96b75 data/HTTPFile.cpp --- a/data/HTTPFile.cpp Sun Mar 08 17:50:52 2015 +0000 +++ b/data/HTTPFile.cpp Thu Aug 06 11:11:31 2015 +0000 @@ -41,7 +41,7 @@ if (file) { written = fwrite(buf, 1, len, file); INFO(" writ:%d, ftell: %d", written, ftell(file)); - if ((!m_chunked && (ftell(file) >= m_len)) || (m_chunked && !written)) { + if ((!m_chunked && ((size_t)ftell(file) >= m_len)) || (m_chunked && !written)) { INFO("closing"); close(); }