Pipes always wrap at 18 * 512 bytes so we don't need to do a 32bit comparison
here
#endif
udata.u_base += amount;
udata.u_offset += amount;
- if (ispipe && udata.u_offset >= 18 * BLKSIZE)
+ if (ispipe && (uint16_t)udata.u_offset >= 18 * BLKSIZE)
udata.u_offset = 0;
toread -= amount;
if (ispipe) {
udata.u_base += amount;
udata.u_offset += amount;
if (ispipe) {
- if (udata.u_offset >= 18 * 512)
+ if ((uint16_t)udata.u_offset >= 18 * 512)
udata.u_offset = 0;
ino->c_node.i_size += amount;
/* Wake up any readers */