[U-Boot] [PATCH v2 11/18] tools: kwbimage: Fix arithmetic with void pointers

Stefan Roese sr at denx.de
Wed Jan 18 17:38:58 CET 2017


On 11.01.2017 16:00, Mario Six wrote:
> Arithmetic with void pointers, e.g. a - b where both a and b are void
> pointers, is undefined in the C standard. Since we are operating with
> byte data here, we switch the void pointers to uint8_t pointers, and add
> the necessary casts.
>
> Signed-off-by: Mario Six <mario.six at gdsys.cc>
> ---
> Changes in v2:
>
> None

Reviewed-by: Stefan Roese <sr at denx.de>

Thanks,
Stefan


More information about the U-Boot mailing list