提交 e03d3106 编写于 作者: L LiteOS2021

fix(ftell.c): __ftello_unlocked调用lseek,强转第二个入参

__ftello_unlocked调用lseek,强转第二个入参
Signed-off-by: NLiteOS2021 <dinglu@huawei.com>
上级 0cfe571f
......@@ -4,7 +4,7 @@
off_t __ftello_unlocked(FILE *f)
{
off_t pos = lseek(f->fd, 0,
off_t pos = lseek(f->fd, (off_t)0,
(f->flags & F_APP) && f->wpos != f->wbase
? SEEK_END : SEEK_CUR);
if (pos < 0) return pos;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册