From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id D98F846D11; Wed, 13 Aug 2025 04:28:35 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 72B7C4025D; Wed, 13 Aug 2025 04:28:35 +0200 (CEST) Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by mails.dpdk.org (Postfix) with ESMTP id ED9D1400EF for ; Wed, 13 Aug 2025 04:28:33 +0200 (CEST) Received: from mail.maildlp.com (unknown [172.19.163.48]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4c1sd775RTzdcCV; Wed, 13 Aug 2025 10:24:11 +0800 (CST) Received: from kwepemk500009.china.huawei.com (unknown [7.202.194.94]) by mail.maildlp.com (Postfix) with ESMTPS id AF469180080; Wed, 13 Aug 2025 10:28:31 +0800 (CST) Received: from [10.67.121.161] (10.67.121.161) by kwepemk500009.china.huawei.com (7.202.194.94) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Wed, 13 Aug 2025 10:28:31 +0800 Message-ID: <3e13185b-47f3-4bdc-9745-8c9966e883fe@huawei.com> Date: Wed, 13 Aug 2025 10:28:30 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 18/22] net: fix IPv4 macro with highest bit To: David Marchand , CC: Konstantin Ananyev References: <20250619071037.37325-1-david.marchand@redhat.com> <20250723133157.159825-1-david.marchand@redhat.com> <20250723133157.159825-19-david.marchand@redhat.com> Content-Language: en-US From: fengchengwen In-Reply-To: <20250723133157.159825-19-david.marchand@redhat.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.121.161] X-ClientProxiedBy: kwepems500002.china.huawei.com (7.221.188.17) To kwepemk500009.china.huawei.com (7.202.194.94) X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Acked-by: Chengwen Feng On 7/23/2025 9:31 PM, David Marchand wrote: > Without an explicit type, all parameters of this macro are considered as > a signed integer. > > ../app/test/test_fib.c:270:20: runtime error: left shift of > 128 by 24 places cannot be represented in type 'int' > SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior > ../app/test/test_fib.c:270:20 in > > Signed-off-by: David Marchand > Acked-by: Konstantin Ananyev