From ef03dc0a6a2b99f53bdc8781609597e404ecf4b7 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Mon, 15 Apr 2024 02:39:55 -0500 Subject: [PATCH] fix Linux build --- src/engine/fileOps/ftm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/fileOps/ftm.cpp b/src/engine/fileOps/ftm.cpp index 9b3b7d55b..bd8b93ea5 100644 --- a/src/engine/fileOps/ftm.cpp +++ b/src/engine/fileOps/ftm.cpp @@ -543,7 +543,7 @@ bool DivEngine::loadFTM(unsigned char* file, size_t len, bool dnft, bool dnft_si tchans = reader.readI(); - if (tchans<0 || tchans>=DIV_MAX_CHANS) { + if (tchans>=DIV_MAX_CHANS) { logE("invalid channel count! %d",tchans); lastError = "invalid channel count"; delete[] file;