Use short-circuiting or (also may save some code size)
Co-authored-by: Dan Halbert <halbert@adafruit.com>
This commit is contained in:
parent
cc3d0f6fa1
commit
a8bbb21eeb
@ -72,7 +72,7 @@ STATIC void close_file(file_arg *active_file) {
|
||||
// nothing
|
||||
}
|
||||
STATIC bool is_eof(file_arg *active_file) {
|
||||
return f_eof(active_file) | f_error(active_file);
|
||||
return f_eof(active_file) || f_error(active_file);
|
||||
}
|
||||
|
||||
// Return 0 if there is no next character (EOF).
|
||||
|
Loading…
Reference in New Issue
Block a user