From: Ondrej Zajicek (work) Date: Thu, 25 Oct 2018 10:39:13 +0000 (+0200) Subject: Lib: Force output type in ip4_addr constructor X-Git-Tag: v2.0.3~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df50598f1c285a5e2820b7427998c6ebf86bbbec;p=thirdparty%2Fbird.git Lib: Force output type in ip4_addr constructor Fixes type issue when u64 is pushed into it. --- diff --git a/lib/ip.h b/lib/ip.h index c3f3e9053..cc6be384b 100644 --- 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