diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-16 21:01:33 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-16 21:01:33 +0000 |
| commit | 5d0d74af4c897f21b0876b5705ea176d00cf3a1d (patch) | |
| tree | 6f28e674a6b6914f0814f5cd78257cf84bb5332f /util | |
| parent | e33831ef20681915dcf01700db70e50d207852be (diff) | |
cast
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util')
| -rw-r--r-- | util/nvmutil/nvmutil.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index 53745675..1f7f4af0 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -1363,7 +1363,7 @@ hextonum(char ch_s) return ch - 'a' + 10; if (ch == '?' || ch == 'x') - return rlong() & 0xf; + return (unsigned short)rlong() & 0xf; return 16; /* invalid character */ } |
