Silence sign-compare warning in avr910.c

This commit is contained in:
Stefan Rueger 2023-01-11 23:55:07 +00:00
parent e349cd1f6b
commit 6088c9b98f
No known key found for this signature in database
GPG Key ID: B0B4F1FD86B1EC55
1 changed files with 2 additions and 2 deletions

View File

@ -653,9 +653,9 @@ static int avr910_paged_load(const PROGRAMMER *pgm, const AVRPART *p, const AVRM
avr910_set_addr(pgm, addr / rd_size);
while (addr < max_addr) {
if ((max_addr - addr) < blocksize) {
if (max_addr - addr < (unsigned int) blocksize)
blocksize = max_addr - addr;
}
cmd[1] = (blocksize >> 8) & 0xff;
cmd[2] = blocksize & 0xff;