]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Lib: Force output type in ip4_addr constructor
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Thu, 20 Dec 2018 12:01:15 +0000 (13:01 +0100)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Thu, 20 Dec 2018 12:01:15 +0000 (13:01 +0100)
Fixes type issue when u64 is pushed into it.

lib/ip.h

index 4fbe44070dde2ab86e43680889509e20cd15efdb..8028ac782df51f3df7c097f6ec58d424c7f1eea7 100644 (file)
--- a/lib/ip.h
+++ b/lib/ip.h
@@ -67,7 +67,7 @@ typedef struct ip4_addr {
 
 typedef u32 ip4_addr;
 
-#define _MI4(x) (x)
+#define _MI4(x) ((u32) (x))
 #define _I(x) (x)
 
 #endif