Re: [PATCH 3/4] argparse: fix argument flags operate as uint32 type

2024-03-07 Thread fengchengwen
Hi David, On 2024/3/7 1:34, David Marchand wrote: > On Tue, Feb 20, 2024 at 2:16 PM Chengwen Feng wrote: >> >> The struct rte_argparse_arg's flags was 64bit type, uint64_t should be >> used instead of uint32_t where the operation happened. > > Something is strange. > An enum in C is represented

Re: [PATCH 3/4] argparse: fix argument flags operate as uint32 type

2024-03-06 Thread David Marchand
On Tue, Feb 20, 2024 at 2:16 PM Chengwen Feng wrote: > > The struct rte_argparse_arg's flags was 64bit type, uint64_t should be > used instead of uint32_t where the operation happened. Something is strange. An enum in C is represented as an int. Plus, this enum type is not used anywhere: lib/arg