X-Git-Url: http://git.linex4red.de/pub/lufa.git/blobdiff_plain/44558468d6117e921ef49fa5fa1e1011a8f6a642..6da32f7dc0eea65f4ea5d0d1641b42436d1c61ed:/Bootloaders/CDC/BootloaderCDC.c diff --git a/Bootloaders/CDC/BootloaderCDC.c b/Bootloaders/CDC/BootloaderCDC.c index 2c8748adf..6a0740a40 100644 --- a/Bootloaders/CDC/BootloaderCDC.c +++ b/Bootloaders/CDC/BootloaderCDC.c @@ -475,8 +475,8 @@ static void CDC_Task(void) else if (Command == AVR109_COMMAND_SetCurrentAddress) { /* Set the current address to that given by the host (translate 16-bit word address to byte address) */ - CurrAddress = (FetchNextCommandByte() << 9); - CurrAddress |= (FetchNextCommandByte() << 1); + CurrAddress = ((uint32_t)FetchNextCommandByte() << 9); + CurrAddress |= ((uint32_t)FetchNextCommandByte() << 1); /* Send confirmation byte back to the host */ WriteNextResponseByte('\r');