diff --git a/src/lattice.cpp b/src/lattice.cpp index a49d323..0b2f3c4 100644 --- a/src/lattice.cpp +++ b/src/lattice.cpp @@ -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(ufm_start & 0xff), + static_cast((ufm_start >> 8) & 0xff), 0, 0x40 };