mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
a3cc62c285
When r is 128 or more, running tests compiled with the undefined behaviour sanitizer (ubsan) reports: test-utils.c:312:45: runtime error: left shift of 128 by 24 places cannot be represented in type 'int' which indeed it cannot. Force the type to be unsigned 32-bit so that we get defined behaviour. Similarly, in test-atlas-migration, the left-shifted guint8 is promoted to int, which again does not have enough non-sign bits available to left-shift a value >= 128 by 24 bits. Again, force the shift to be done in unsigned 32-bit space. This was originally cogl!22, but applies equally to mutter's fork of cogl. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1271 Signed-off-by: Simon McVittie <smcv@debian.org> |
||
---|---|---|
.. | ||
meson.build | ||
test-unit.h | ||
test-utils.c | ||
test-utils.h |