commit | 7497cd6c2ff536ea98346ace9cec46e9f3bcbe72 | [log] [tgz] |
---|---|---|
author | Mario Six <mario.six@gdsys.cc> | Wed Jan 11 16:00:55 2017 +0100 |
committer | Stefan Roese <sr@denx.de> | Wed Feb 01 09:03:48 2017 +0100 |
tree | 2a68f088fd1eba2334efef58d0877b06d1abc38b | |
parent | d6009d7fba7185ed27fd821a2f76f75809654198 [diff] |
tools: kwbimage: Fix arithmetic with void pointers 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@gdsys.cc> Reviewed-by: Stefan Roese <sr@denx.de> Signed-off-by: Stefan Roese <sr@denx.de>