Re: [libvirt] [PATCH v2 2/3] util: Clear unused part of the map in virBitmapShrink

2018-02-02 Thread Martin Kletzander
On Fri, Feb 02, 2018 at 02:15:05PM +0100, Peter Krempa wrote: On Fri, Feb 02, 2018 at 14:04:31 +0100, Martin Kletzander wrote: Some of the other functions depend on the fact that unused bits and longs are always zero and it's less error-prone to clear it than fix the other functions. It's enough

Re: [libvirt] [PATCH v2 2/3] util: Clear unused part of the map in virBitmapShrink

2018-02-02 Thread Peter Krempa
On Fri, Feb 02, 2018 at 14:04:31 +0100, Martin Kletzander wrote: > Some of the other functions depend on the fact that unused bits and longs are > always zero and it's less error-prone to clear it than fix the other > functions. > It's enough to zero out one piece of the map since we're calling re