diff options
author | B. Watson <urchlay@slackware.uk> | 2024-05-16 15:18:16 -0400 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2024-05-16 15:18:16 -0400 |
commit | d4064b55a7ddbb002ef80dbc0db60cd0d95cb1cd (patch) | |
tree | fdc169397d7e2b3f66c725ee9c042297ffd9cf8a /blob2xex.c | |
parent | 97142cb95b19c4b07a721a0b449c308b04d64e58 (diff) | |
download | bw-atari8-tools-d4064b55a7ddbb002ef80dbc0db60cd0d95cb1cd.tar.gz |
blob2xex: get rid of un-triggerable warning.
Diffstat (limited to 'blob2xex.c')
-rw-r--r-- | blob2xex.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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 <size> 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; |