mirror of
https://github.com/trabucayre/openFPGALoader.git
synced 2026-08-30 01:48:50 +02:00
lattice: fix cast int vs uint8_t
This commit is contained in:
+2
-2
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user