mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-02-04 17:40:39 +01:00
Merge branch 'fix-signed-left-shift' into 'master'
Avoid undefined signed left shift See merge request cairo/cairo!484
This commit is contained in:
commit
0317aafd3f
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