Skip to content
Commit b56d417b authored by Paolo Bonzini's avatar Paolo Bonzini Committed by David Gibson
Browse files

target-ppc: fix left shift overflow in hpte_page_shift



ps->pte_enc is a 32-bit value, which is shifted left and then compared
to a 64-bit value.  It needs a cast before the shift.

Reported by Coverity.

Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
parent 28f33318
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment