Re: [ovs-dev] [PATCH branch-2.3 v2 1/5] type-props: Avoid a MSVC warning.

2016-02-05 Thread Ben Pfaff
On Thu, Feb 04, 2016 at 04:10:07PM -0800, Jarno Rajahalme wrote: > From: Gurucharan Shetty > > Currently, MSVC complains when you have a macro of the > form TYPE_MAXIMUM(uint64_t) because a part of macro becomes > ~(uint64_t)0 << 64 with a warning: > > C4293: '<<' : shift

[ovs-dev] [PATCH branch-2.3 v2 1/5] type-props: Avoid a MSVC warning.

2016-02-04 Thread Jarno Rajahalme
From: Gurucharan Shetty Currently, MSVC complains when you have a macro of the form TYPE_MAXIMUM(uint64_t) because a part of macro becomes ~(uint64_t)0 << 64 with a warning: C4293: '<<' : shift count negative or too big, undefined behavior. This commit makes changes to the