From a0fdccc2a4bf7bf6e979e0d01ee2020504fa743a Mon Sep 17 00:00:00 2001 From: Gwenhael Goavec-Merou Date: Mon, 1 May 2023 01:05:36 +0200 Subject: [PATCH] lattice: fix cast int vs uint8_t --- src/lattice.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 };