Skip to content
Commit c88b7bea authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

lib/alloc.c: fix missing include



Include bitops.h to get BITS_PER_LONG and avoid errors such as

lib/alloc.c: In function mult_overflow:
lib/alloc.c:24:9: error: right shift count >= width of type
[-Werror=shift-count-overflow]
   24 |  if ((a >> 32) && (b >> 32))
      |         ^~

Fixes: cde8415e ("lib/alloc.c: add overflow check for calloc")
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 49efa0e0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment