examples/ip_pipeline: fix 32-bit build
authorJasvinder Singh <jasvinder.singh@intel.com>
Fri, 8 Apr 2016 17:13:27 +0000 (18:13 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 8 Apr 2016 20:28:39 +0000 (22:28 +0200)
error log:
ip_pipeline/pipeline/pipeline_routing_be.c:1537:
integer constant is too large for 'long' type

Fixes: 0ae7275810f1 ("examples/ip_pipeline: add more functions to routing pipeline")

Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Acked-by: John McNamara <john.mcnamara@intel.com>
examples/ip_pipeline/pipeline/pipeline_routing_be.c

index 431c636..bc5bf7a 100644 (file)
@@ -65,7 +65,7 @@
        ((((uint64_t) (pipe)) & 0xFFFFFFFF) << 32))
 
 
-#define MAC_SRC_DEFAULT 0x112233445566
+#define MAC_SRC_DEFAULT 0x112233445566ULL
 
 #ifndef PIPELINE_ROUTING_LPM_TABLE_NUMBER_TABLE8s
 #define PIPELINE_ROUTING_LPM_TABLE_NUMBER_TABLE8s 256