mescc: Mes C Library: feof: Bugfix for ARM.

* lib/stdio/feof.c (feof): Use int to compare with EOF.
This commit is contained in:
Jan (janneke) Nieuwenhuizen 2020-12-28 10:19:56 +01:00
parent 42a18b3425
commit 9b0e04c0e3
No known key found for this signature in database
GPG Key ID: F3C1A0D9C1D65273
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
/* -*-comment-start: "//";comment-end:""-*-
* 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.
*
@ -23,7 +23,7 @@
int
feof (FILE * stream)
{
char c = fgetc (stream);
int c = fgetc (stream);
if (c != EOF)
ungetc (c, stream);
return c == EOF;