diff options
author | agc <agc@pkgsrc.org> | 2020-05-04 01:37:28 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 2020-05-04 01:37:28 +0000 |
commit | 4f6f3f2ef4cbd8704e533bb6f509964da38cfcb6 (patch) | |
tree | df469094c12427b66c9d615ec808934678055a3a /security/netpgpverify | |
parent | 5f5e137fe3644dd2c47bce3c3f29ee6309cd9066 (diff) | |
download | pkgsrc-4f6f3f2ef4cbd8704e533bb6f509964da38cfcb6.tar.gz |
bring over change from src - cast return values
Diffstat (limited to 'security/netpgpverify')
-rw-r--r-- | security/netpgpverify/files/pgpsum.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/netpgpverify/files/pgpsum.c b/security/netpgpverify/files/pgpsum.c index 524c1fbd3af..6c3a39a7d87 100644 --- a/security/netpgpverify/files/pgpsum.c +++ b/security/netpgpverify/files/pgpsum.c @@ -175,7 +175,7 @@ swap16(uint16_t in) u16 u; u.i16 = in; - return (u.i8[0] << 8) | u.i8[1]; + return ((uint16_t)u.i8[0] << 8) | u.i8[1]; } static inline uint32_t @@ -184,7 +184,7 @@ swap32(uint32_t in) u32 u; u.i32 = in; - return (u.i8[0] << 24) | (u.i8[1] << 16) | (u.i8[2] << 8) | u.i8[3]; + return ((uint32_t)u.i8[0] << 24) | (u.i8[1] << 16) | (u.i8[2] << 8) | u.i8[3]; } static inline int |