Re: [PATCH v2] eal/windows: resolve conversion and truncation warnings

2024-03-07 Thread Tyler Retzlaff
On Thu, Mar 07, 2024 at 08:53:49PM +, Bruce Richardson wrote: > On Thu, Mar 07, 2024 at 10:34:42AM -0800, Tyler Retzlaff wrote: > > * Initialize const int NS_PER_SEC with an integer literal instead of > > double thereby avoiding implicit conversion from double to int. > > > > * Cast the resu

Re: [PATCH v2] eal/windows: resolve conversion and truncation warnings

2024-03-07 Thread Bruce Richardson
On Thu, Mar 07, 2024 at 10:34:42AM -0800, Tyler Retzlaff wrote: > * Initialize const int NS_PER_SEC with an integer literal instead of > double thereby avoiding implicit conversion from double to int. > > * Cast the result of the expression assigned to timespec.tv_nsec to long. > > Signed-off-b

[PATCH v2] eal/windows: resolve conversion and truncation warnings

2024-03-07 Thread Tyler Retzlaff
* Initialize const int NS_PER_SEC with an integer literal instead of double thereby avoiding implicit conversion from double to int. * Cast the result of the expression assigned to timespec.tv_nsec to long. Signed-off-by: Tyler Retzlaff Acked-by: Dmitry Kozlyuk --- v2: * update commit mess