diff options
| author | mayeut <mayeut@users.noreply.github.com> | 2015-07-26 02:41:39 +0200 |
|---|---|---|
| committer | mayeut <mayeut@users.noreply.github.com> | 2015-07-26 02:41:39 +0200 |
| commit | c423cc84e7be79051a7f9631fa26aa7d072361f2 (patch) | |
| tree | 98d92f8501df77e5510c69eb4db6f1fab20b9855 /src/lib/openjp2/cio.c | |
| parent | d87de3a88da9a405a06e8d1e3b3d5d8b3e935ba2 (diff) | |
Remove some warnings when building
Update #442
Diffstat (limited to 'src/lib/openjp2/cio.c')
| -rw-r--r-- | src/lib/openjp2/cio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/openjp2/cio.c b/src/lib/openjp2/cio.c index c6f778c9..b2f6405f 100644 --- a/src/lib/openjp2/cio.c +++ b/src/lib/openjp2/cio.c @@ -302,7 +302,7 @@ OPJ_SIZE_T opj_stream_read_data (opj_stream_private_t * p_stream,OPJ_BYTE * p_bu p_stream->m_current_data = p_stream->m_stored_data; } - while(1){ + for (;;) { /* we should read less than a chunk -> read a chunk */ if (p_size < p_stream->m_buffer_size) { /* we should do an actual read on the media */ @@ -382,7 +382,7 @@ OPJ_SIZE_T opj_stream_write_data (opj_stream_private_t * p_stream, return (OPJ_SIZE_T)-1; } - while(1) { + for (;;) { l_remaining_bytes = p_stream->m_buffer_size - p_stream->m_bytes_in_buffer; /* we have more memory than required */ |
