mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-08 12:28:04 +02:00
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>
This commit is contained in:
parent
067e977fe1
commit
312c8bea66
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue