aboutsummaryrefslogtreecommitdiffstats
path: root/tools/cbootimage
diff options
context:
space:
mode:
authorSven Wegener <sven.wegener@stealer.net>2021-06-12 21:56:21 +0200
committerDaniel Golle <daniel@makrotopia.org>2022-09-18 15:39:41 +0100
commitcd0283788fdb73a832f8476f94a3f357bcb89e65 (patch)
tree4dbd4d1ae60113a80ea84f627d02ef16fb2c6416 /tools/cbootimage
parenta2d251573b382ac3466ce94af96a102c943cae2d (diff)
downloadupstream-cd0283788fdb73a832f8476f94a3f357bcb89e65.tar.gz
upstream-cd0283788fdb73a832f8476f94a3f357bcb89e65.tar.bz2
upstream-cd0283788fdb73a832f8476f94a3f357bcb89e65.zip
mediatek: cast literal value to char
Or the comparison against a signed char is always true, because the literal 0xaa is treated as an unsigned int, to which the signed char is casted during comparison. 0xaa is above the positive values of a signed char and negative signed char values result in values larger than 0xaa when casted to unsigned int. Signed-off-by: Sven Wegener <sven.wegener@stealer.net> (cherry picked from commit e9a22ce2535c4a0faf83d5595304fe0e2c7bd1b2)
Diffstat (limited to 'tools/cbootimage')
0 files changed, 0 insertions, 0 deletions