util/nvmutil: explicit cast in nvm_word

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-09 05:31:51 +00:00
parent 3b73ea4288
commit e092b2ce0b
+1 -1
View File
@@ -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