From 5b9385b2c82991de4bfa3b6c9d855078edd3ff72 Mon Sep 17 00:00:00 2001 From: harry Date: Sat, 28 Jan 2023 09:09:58 -0500 Subject: [PATCH] Resolved int comparison compiler warning. --- src/emufile.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emufile.h b/src/emufile.h index 7f28743b..0bd65c3d 100644 --- a/src/emufile.h +++ b/src/emufile.h @@ -59,7 +59,7 @@ public: bool fail(bool unset=false) { bool ret = failbit; if(unset) unfail(); return ret; } void unfail() { failbit=false; } - bool eof() { return size()==ftell(); } + bool eof() { return size() == static_cast(ftell()); } size_t fread(const void *ptr, size_t bytes){ return _fread(ptr,bytes);