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:
parent
32f5596178
commit
efd6789934
@ -265,7 +265,7 @@ output_run(uint32_t *p, uint32_t delta, int run)
|
|||||||
#if defined(HAVE_BUILTIN_CLZ)
|
#if defined(HAVE_BUILTIN_CLZ)
|
||||||
i = 24 - __builtin_clz(run);
|
i = 24 - __builtin_clz(run);
|
||||||
#else
|
#else
|
||||||
for (i = 0, tmp = u >> 8; tmp; i++, tmp >>= 1);
|
for (i = 0, tmp = run >> 8; tmp; i++, tmp >>= 1);
|
||||||
#endif
|
#endif
|
||||||
*p++ = delta | ((i + 0xe0) << 24);
|
*p++ = delta | ((i + 0xe0) << 24);
|
||||||
run -= 1 << (7 + i);
|
run -= 1 << (7 + i);
|
||||||
|
Loading…
Reference in New Issue
Block a user