From e092b2ce0bcbcce7e11628963b93ac4b47dd463a Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Mon, 9 Mar 2026 05:31:51 +0000 Subject: util/nvmutil: explicit cast in nvm_word Signed-off-by: Leah Rowe --- util/nvmutil/nvmutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index 3a5148ff..32fafa59 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -1108,7 +1108,7 @@ nvm_word(size_t pos16, size_t p) check_nvm_bound(pos16, p); pos = (pos16 << 1) + (p * GBE_PART_SIZE); - return buf[pos] | (buf[pos + 1] << 8); + return (uint16_t)buf[pos] | (uint16_t)(buf[pos + 1] << 8); } static void -- cgit v1.2.1