Re: [FFmpeg-devel] [PATCH] compat: Fix the fallback definition of stdc_trailing_zeros

2024-09-24 Thread Anton Khirnov
Quoting Martin Storsjö (2024-09-24 10:53:38) > While shifting "value" to left, we would iterate through all bits > of an unsigned long long, while we only expect to count through > "size * CHAR_BIT" bits. > > This fixes fate with MSVC. > --- > compat/stdbit/stdbit.h | 3 ++- > 1 file changed, 2 i

[FFmpeg-devel] [PATCH] compat: Fix the fallback definition of stdc_trailing_zeros

2024-09-24 Thread Martin Storsjö
While shifting "value" to left, we would iterate through all bits of an unsigned long long, while we only expect to count through "size * CHAR_BIT" bits. This fixes fate with MSVC. --- compat/stdbit/stdbit.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compat/stdbit/stdbi