From d4064b55a7ddbb002ef80dbc0db60cd0d95cb1cd Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Thu, 16 May 2024 15:18:16 -0400 Subject: blob2xex: get rid of un-triggerable warning. --- blob2xex.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'blob2xex.c') diff --git a/blob2xex.c b/blob2xex.c index 413fb52..0fd5c58 100644 --- a/blob2xex.c +++ b/blob2xex.c @@ -100,10 +100,7 @@ int write_segment( /* make sure we don't wrap the Atari's address space. */ if(size + loadaddr > 0xffff) { - int oldsize = size; size = (size - loadaddr) + 1; - fprintf(stderr, SELF ": " - "warning: %s: address would exceed $FFFF! truncated %d bytes to %d.\n", infile, oldsize, size); } /* read bytes, or until EOF (which is not an error) */ @@ -213,7 +210,7 @@ int main(int argc, char **argv) { if( (bytes = write_segment(infile, outfile, loadaddr, initaddr, offset, size)) ) { segcount++; loadaddr += bytes; - loadaddr %= 0xffff; + loadaddr &= 0xffff; } else { segcount = 0; break; -- cgit v1.2.3