Re: [PATCH] lib/fib: remove warning about implicit 64-bit conversion

2024-12-05 Thread Andre Muezerie
On Wed, Dec 04, 2024 at 02:59:40PM -0800, Stephen Hemminger wrote: > On Tue, 3 Dec 2024 18:56:50 -0800 > Andre Muezerie wrote: > > > MSVC issues the warning below: > > > > ../lib/fib/trie.c(341): warning C4334: '<<': > > result of 32-bit shift implicitly converted to 64 bits > > (was 64-bit shi

Re: [PATCH] lib/fib: remove warning about implicit 64-bit conversion

2024-12-04 Thread Stephen Hemminger
On Tue, 3 Dec 2024 18:56:50 -0800 Andre Muezerie wrote: > MSVC issues the warning below: > > ../lib/fib/trie.c(341): warning C4334: '<<': > result of 32-bit shift implicitly converted to 64 bits > (was 64-bit shift intended?) > > The fix is to cast the result explicitly to ptrdiff_t since it i

[PATCH] lib/fib: remove warning about implicit 64-bit conversion

2024-12-03 Thread Andre Muezerie
MSVC issues the warning below: ../lib/fib/trie.c(341): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) The fix is to cast the result explicitly to ptrdiff_t since it is used in pointer arithmetic. Signed-off-by: Andre Muezerie --- lib/fi