[dpdk-dev] [PATCH] pipeline: use unsigned constants for left shift operations
Thomas Monjalon
thomas.monjalon at 6wind.com
Sun Mar 13 16:19:50 CET 2016
2016-03-10 15:49, Panu Matilainen:
> --- a/examples/ip_pipeline/pipeline/pipeline_routing.c
> +++ b/examples/ip_pipeline/pipeline/pipeline_routing.c
> @@ -319,7 +319,7 @@ app_pipeline_routing_add_route(struct app_params *app,
> if ((depth == 0) || (depth > 32))
> return -1;
>
> - netmask = (~0) << (32 - depth);
> + netmask = (~U0) << (32 - depth);
Typo: should be 0U.
More information about the dev
mailing list