mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
UPSTREAM: util/romcc: Ensure that bit shift is valid
BUG=None BRANCH=None TEST=None Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Found-by: Coverity Scan #1287090 Reviewed-on: https://review.coreboot.org/18020 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com> Change-Id: Idbe147c1217f793b0360a752383203c658b0bdce Reviewed-on: https://chromium-review.googlesource.com/425287 Commit-Ready: Furquan Shaikh <furquan@chromium.org> Tested-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
707db62c59
commit
88a9311bae
1 changed files with 1 additions and 1 deletions
|
@ -14250,7 +14250,7 @@ static void compute_closure_variables(struct compile_state *state,
|
|||
}
|
||||
/* Find the lowest unused index value */
|
||||
for(index = 0; index < MAX_INDICIES; index++) {
|
||||
if (!(used_indicies & (1 << index))) {
|
||||
if (!(used_indicies & ((uint64_t)1 << index))) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue