pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/security/netpgpverify/files
Module Name: pkgsrc
Committed By: agc
Date: Mon May 4 01:37:28 UTC 2020
Modified Files:
pkgsrc/security/netpgpverify/files: pgpsum.c
Log Message:
bring over change from src - cast return values
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 pkgsrc/security/netpgpverify/files/pgpsum.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/security/netpgpverify/files/pgpsum.c
diff -u pkgsrc/security/netpgpverify/files/pgpsum.c:1.4 pkgsrc/security/netpgpverify/files/pgpsum.c:1.5
--- pkgsrc/security/netpgpverify/files/pgpsum.c:1.4 Thu Jun 30 21:19:59 2016
+++ pkgsrc/security/netpgpverify/files/pgpsum.c Mon May 4 01:37:28 2020
@@ -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
Home |
Main Index |
Thread Index |
Old Index