X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fed25519%2Ffixedint.h;h=553f8880a215911a5a4b79496eb113556c8f7b64;hb=2c6b2d70e6640f39563ad7bb0aa0ba87f883848c;hp=af031e9a8997c4bccb2725149dc0b7d84017a0ca;hpb=b18d5b572992debb04a7851e43143711319243a0;p=tinc diff --git a/src/ed25519/fixedint.h b/src/ed25519/fixedint.h index af031e9a..553f8880 100644 --- a/src/ed25519/fixedint.h +++ b/src/ed25519/fixedint.h @@ -77,11 +77,11 @@ static inline unsigned char shlu8(unsigned char a, uint32_t b) { } static inline int32_t shl32(uint32_t a, uint32_t b) { - return a << b; + return (int32_t)(a << b); } static inline int64_t shl64(uint64_t a, uint32_t b) { - return a << b; + return (int64_t)(a << b); } static inline uint64_t shlu64(uint64_t a, uint32_t b) {