]> tinc-vpn.org Git - tinc/blobdiff - src/ed25519/fixedint.h
Rename base64 funcs to show they're not RFC-compliant.
[tinc] / src / ed25519 / fixedint.h
index af031e9a8997c4bccb2725149dc0b7d84017a0ca..553f8880a215911a5a4b79496eb113556c8f7b64 100644 (file)
@@ -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) {