mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-16 13:16:47 +02:00
util/nvmutil: explicit cast in nvm_word
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -1108,7 +1108,7 @@ nvm_word(size_t pos16, size_t p)
|
|||||||
check_nvm_bound(pos16, p);
|
check_nvm_bound(pos16, p);
|
||||||
pos = (pos16 << 1) + (p * GBE_PART_SIZE);
|
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
|
static void
|
||||||
|
|||||||
Reference in New Issue
Block a user