Re: [PATCH] drivers/common: avoid truncation of constant value

2025-03-03 Thread Andre Muezerie
On Wed, Dec 18, 2024 at 08:05:12AM -0800, Andre Muezerie wrote: > This issue was flagged by MSVC warning below: > > drivers\common\idpf\base/virtchnl2.h(269): warning C4309: > 'initializing': truncation of constant value > > The problem is that 64-bit numbers are initialized in an enum. > >

[PATCH] drivers/common: avoid truncation of constant value

2024-12-18 Thread Andre Muezerie
This issue was flagged by MSVC warning below: drivers\common\idpf\base/virtchnl2.h(269): warning C4309: 'initializing': truncation of constant value The problem is that 64-bit numbers are initialized in an enum. The C11 standard states: The expression that defines the value of an enumeration