Possibly save a few bytes when stripping the tags of the last allocated handle
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15844 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
3e7f02e007
commit
e959c5aa95
|
@ -1187,6 +1187,9 @@ ssize_t bufcuttail(int handle_id, size_t size)
|
|||
h->available -= size;
|
||||
h->filesize -= size;
|
||||
h->widx = RINGBUF_SUB(h->widx, size);
|
||||
if (h == cur_handle) {
|
||||
buf_widx = h->widx;
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user