From 4df42f1a55b39bd4f7657e3b22c3a09a77f25a45 Mon Sep 17 00:00:00 2001 From: "Ondrej Zajicek (work)" Date: Thu, 20 Dec 2018 13:01:15 +0100 Subject: Lib: Force output type in ip4_addr constructor Fixes type issue when u64 is pushed into it. --- lib/ip.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/ip.h b/lib/ip.h index 4fbe4407..8028ac78 100644 --- 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 -- cgit v1.2.3