projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
use fast version of the int reading code for the high-order digits too
[musl]
/
src
/
internal
/
shgetc.c
diff --git
a/src/internal/shgetc.c
b/src/internal/shgetc.c
index
7c4e58c
..
82e3a4f
100644
(file)
--- a/
src/internal/shgetc.c
+++ b/
src/internal/shgetc.c
@@
-3,7
+3,7
@@
void __shlim(FILE *f, off_t lim)
{
f->shlim = lim;
- f->shcnt = f->rend
? f->rend - f->buf : 0
;
+ f->shcnt = f->rend
- f->rpos
;
if (lim && f->rend - f->rpos > lim)
f->shend = f->rpos + lim;
else