mescc: Mes C Library: feof: Bugfix for ARM.
* lib/stdio/feof.c (feof): Use int to compare with EOF.
This commit is contained in:
parent
7ab9cfe864
commit
381e8bd6e0
|
@ -1,6 +1,6 @@
|
||||||
/* -*-comment-start: "//";comment-end:""-*-
|
/* -*-comment-start: "//";comment-end:""-*-
|
||||||
* GNU Mes --- Maxwell Equations of Software
|
* GNU Mes --- Maxwell Equations of Software
|
||||||
* Copyright © 2018 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
|
* Copyright © 2018,2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
|
||||||
*
|
*
|
||||||
* This file is part of GNU Mes.
|
* This file is part of GNU Mes.
|
||||||
*
|
*
|
||||||
|
@ -23,7 +23,7 @@
|
||||||
int
|
int
|
||||||
feof (FILE * stream)
|
feof (FILE * stream)
|
||||||
{
|
{
|
||||||
char c = fgetc (stream);
|
int c = fgetc (stream);
|
||||||
if (c != EOF)
|
if (c != EOF)
|
||||||
ungetc (c, stream);
|
ungetc (c, stream);
|
||||||
return c == EOF;
|
return c == EOF;
|
||||||
|
|
Loading…
Reference in a new issue