mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-10-09 20:21:00 +00:00
Silence sign-compare warnings in usbtiny.c
This commit is contained in:
@@ -735,7 +735,7 @@ static int usbtiny_paged_write(const PROGRAMMER *pgm, const AVRPART *p, const AV
|
|||||||
}
|
}
|
||||||
|
|
||||||
// we can only write a page at a time anyways
|
// we can only write a page at a time anyways
|
||||||
if (m->paged && chunk > page_size)
|
if (m->paged && chunk > (int) page_size)
|
||||||
chunk = page_size;
|
chunk = page_size;
|
||||||
|
|
||||||
if (usb_out(pgm,
|
if (usb_out(pgm,
|
||||||
@@ -752,8 +752,7 @@ static int usbtiny_paged_write(const PROGRAMMER *pgm, const AVRPART *p, const AV
|
|||||||
}
|
}
|
||||||
|
|
||||||
next = addr + chunk; // Calculate what address we're at now
|
next = addr + chunk; // Calculate what address we're at now
|
||||||
if (m->paged
|
if (m->paged && (next % page_size == 0 || next == (int) maxaddr) ) {
|
||||||
&& ((next % page_size) == 0 || next == maxaddr) ) {
|
|
||||||
// If we're at a page boundary, send the SPI command to flush it.
|
// If we're at a page boundary, send the SPI command to flush it.
|
||||||
avr_write_page(pgm, p, m, (unsigned long) addr);
|
avr_write_page(pgm, p, m, (unsigned long) addr);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user