libweston/screenshooter: Fix build when __builtin_clz is not available

Fix compilation error when `__builtin_clz` is not available by renaming variable 'u' to 'run'

Signed-off-by: Junyu Long <877730493@qq.com>
(cherry picked from commit 312c8bea66)
This commit is contained in:
EatingSumo 2024-09-16 13:17:28 +00:00 committed by Marius Vlad
parent 32f5596178
commit efd6789934

View File

@ -265,7 +265,7 @@ output_run(uint32_t *p, uint32_t delta, int run)
#if defined(HAVE_BUILTIN_CLZ)
i = 24 - __builtin_clz(run);
#else
for (i = 0, tmp = u >> 8; tmp; i++, tmp >>= 1);
for (i = 0, tmp = run >> 8; tmp; i++, tmp >>= 1);
#endif
*p++ = delta | ((i + 0xe0) << 24);
run -= 1 << (7 + i);