mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 01:48:07 +02:00
Avoid undefined signed left shift
Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1841190
This commit is contained in:
parent
42555cb0a7
commit
afac8b0e7d
1 changed files with 1 additions and 1 deletions
|
|
@ -66,7 +66,7 @@
|
|||
static inline cairo_fixed_t
|
||||
_cairo_fixed_from_int (int i)
|
||||
{
|
||||
return i << CAIRO_FIXED_FRAC_BITS;
|
||||
return (cairo_fixed_unsigned_t)i << CAIRO_FIXED_FRAC_BITS;
|
||||
}
|
||||
|
||||
/* This is the "magic number" approach to converting a double into fixed
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue