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

lib/ip.h

index c3f3e9053e14dbdb6d46801344bea9ac6bbd9828..cc6be384b16216abe82370c9717843b9c3b70041 100644 (file)
--- a/lib/ip.h
+++ b/lib/ip.h
@@ -61,7 +61,7 @@ typedef struct ip4_addr {
 
 typedef u32 ip4_addr;
 
-#define _MI4(x) (x)
+#define _MI4(x) ((u32) (x))
 #define _I(x) (x)
 
 #endif