From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] pipeline: use unsigned constants for left shift operations Date: Sun, 13 Mar 2016 16:19:50 +0100 Message-ID: <2826033.PWulAmGijI@xps13> References: <596c08913453daea0e9c98f25befba923a961216.1457617795.git.pmatilai@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Panu Matilainen Return-path: Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com [74.125.82.48]) by dpdk.org (Postfix) with ESMTP id B73613989 for ; Sun, 13 Mar 2016 16:21:11 +0100 (CET) Received: by mail-wm0-f48.google.com with SMTP id p65so72700289wmp.1 for ; Sun, 13 Mar 2016 08:21:11 -0700 (PDT) In-Reply-To: <596c08913453daea0e9c98f25befba923a961216.1457617795.git.pmatilai@redhat.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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.