lattice: fix cast int vs uint8_t

This commit is contained in:
Gwenhael Goavec-Merou 2023-05-01 01:05:36 +02:00
parent 0db174ed7e
commit a0fdccc2a4
1 changed files with 2 additions and 2 deletions

View File

@ -491,8 +491,8 @@ bool Lattice::program_intFlash(ConfigBitstreamParser *_cbp)
if ((eraseMode & FLASH_ERASE_UFM) != 0) {
/* LSC_WRITE_ADDRESS */
uint8_t tx[4] = {
ufm_start & 0xff,
(ufm_start >> 8) & 0xff,
static_cast<uint8_t>(ufm_start & 0xff),
static_cast<uint8_t>((ufm_start >> 8) & 0xff),
0,
0x40
};