Re: [ovs-dev] [PATCH] odp-util: fix a compiler warning

2018-01-15 Thread Aaron Conole
Ben Pfaff writes: > On Sat, Jan 13, 2018 at 04:21:51PM -0500, Aaron Conole wrote: >> The result of a ternary operation will be promoted at least to int >> type. As such, the compiler may generate a warning as: >> format specifies type 'unsigned char' but the argument has type 'int' >> >> This

Re: [ovs-dev] [PATCH] odp-util: fix a compiler warning

2018-01-15 Thread Ben Pfaff
On Sat, Jan 13, 2018 at 04:21:51PM -0500, Aaron Conole wrote: > The result of a ternary operation will be promoted at least to int > type. As such, the compiler may generate a warning as: > format specifies type 'unsigned char' but the argument has type 'int' > > This commit explicitly casts th

Re: [ovs-dev] [PATCH] odp-util: fix a compiler warning

2018-01-15 Thread Stokes, Ian
> The result of a ternary operation will be promoted at least to int type. > As such, the compiler may generate a warning as: > format specifies type 'unsigned char' but the argument has type 'int' > > This commit explicitly casts the result to avoid the warning. > > Fixes: 74c4530dca93 ("ofpro

[ovs-dev] [PATCH] odp-util: fix a compiler warning

2018-01-13 Thread Aaron Conole
The result of a ternary operation will be promoted at least to int type. As such, the compiler may generate a warning as: format specifies type 'unsigned char' but the argument has type 'int' This commit explicitly casts the result to avoid the warning. Fixes: 74c4530dca93 ("ofproto-dpif: Don'