Mercurial > ecos
changeset 1717:fc3e63dcb859
Swap around if clause in last change
| author | jlarmour |
|---|---|
| date | Mon, 16 Aug 2004 14:38:42 +0000 |
| parents | 71a39e52b020 |
| children | 81ee8c3c3d7b |
| files | packages/language/c/libc/stdio/current/src/common/stream.cxx |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/language/c/libc/stdio/current/src/common/stream.cxx +++ b/packages/language/c/libc/stdio/current/src/common/stream.cxx @@ -394,7 +394,7 @@ Cyg_StdioStream::read( cyg_uint8 *user_b // // unless we do this, we could end up reading byte-by-byte from the filing system // due to the readbuf_char scheme. - if ((*bytes_read<buffer_length) && !flags.buffering) { + if (!flags.buffering && (*bytes_read<buffer_length)) { cyg_uint32 len; len=buffer_length-*bytes_read; read_err = cyg_stdio_read(my_device, user_buffer + *bytes_read, &len);
