Avoid sign extension when shifting the MSB.
authorWerner Koch <wk@gnupg.org>
Wed, 5 Nov 2014 07:23:15 +0000 (08:23 +0100)
committerWerner Koch <wk@gnupg.org>
Wed, 5 Nov 2014 07:23:15 +0000 (08:23 +0100)
commit91b826a38880fd8a989318585eb502582636ddd8
treecbac936eb1bd009986f4f95d762316a4a36c19b9
parent46fa1e0fe9f7407f12aa854e5cdb54624af3e89b
Avoid sign extension when shifting the MSB.

* sm/fingerprint.c (gpgsm_get_short_fingerprint): Cast MSB before
shifting.
* g10/build-packet.c (delete_sig_subpkt): Ditto.

Signed-off-by: Werner Koch <wk@gnupg.org>
g10/build-packet.c
sm/fingerprint.c