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 7ab9cfe864
commit 381e8bd6e0
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -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;