From 146f6000b762b5acf90e58e41dd740f31c385ada Mon Sep 17 00:00:00 2001 From: Nicklas Larsson Date: Mon, 5 Oct 2026 14:17:25 +0200 Subject: [PATCH] lib/dspf: Fix "Implicit conversion loses integer precision" warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adresses ” -Wshorten-64-to-32” Clang warnings. --- lib/dspf/cube_io.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/dspf/cube_io.c b/lib/dspf/cube_io.c index 076e1406504..c3efb440a97 100644 --- a/lib/dspf/cube_io.c +++ b/lib/dspf/cube_io.c @@ -153,8 +153,8 @@ int read_cube(Cube_data *Cube, file_info *headfax) while (first) { /* use while instead of if to utilize 'break' !! */ /* try reading the entire file into memory */ - long start, stop, i; - int ret; + off_t start, stop; + size_t i, ret; first = 0; @@ -256,13 +256,13 @@ static int cptr = 0; int my_fread(char *buf, int size, int cnt, FILE *fp) { if (!fsize) - return fread(buf, size, cnt, fp); + return (int)fread(buf, size, cnt, fp); else { int amt; amt = size * cnt; if (cptr + amt >= fsize) - amt = fsize - cptr - 1; + amt = (int)fsize - cptr - 1; struct_copy(buf, fptr + cptr, amt); cptr += amt; return (amt);