cast to unsigned int before shifting left
authorMarcus Meissner <marcus@jet.franken.de>
Sat, 18 Jan 2020 18:50:38 +0000 (19:50 +0100)
committerMarcus Meissner <marcus@jet.franken.de>
Sat, 18 Jan 2020 18:50:38 +0000 (19:50 +0100)
commitcf37dc7934bbb10dc5d0c17db260a25aa2831595
tree30312a86b762e6fc0d5f1ae55799e919543d1759
parent75aa73267fdb1e0ebfbc00369e7312bac43d0566
cast to unsigned int before shifting left

(weird integer promotion, a unsigned char will be first tried to be promoted to "int" apparently,
so we need to cast it to avoid implicit behaviour)

fixes https://github.com/libexif/libexif/issues/20
libexif/exif-utils.c