Re: [PATCH v1 1/3] tools: allocate bitmaps in units of unsigned long

2020-12-15 Thread Wei Liu
On Wed, Dec 09, 2020 at 04:54:49PM +0100, Olaf Hering wrote: > Allocate enough memory so that the returned pointer can be safely > accessed as an array of unsigned long. > > The actual bitmap size in units of bytes, as returned by bitmap_size, > remains unchanged. > > Signed-off-by: Olaf Hering

[PATCH v1 1/3] tools: allocate bitmaps in units of unsigned long

2020-12-09 Thread Olaf Hering
Allocate enough memory so that the returned pointer can be safely accessed as an array of unsigned long. The actual bitmap size in units of bytes, as returned by bitmap_size, remains unchanged. Signed-off-by: Olaf Hering --- tools/libs/ctrl/xc_bitops.h | 5 - 1 file changed, 4