mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
fix unsigned integer overflow when passing args to composite_bitmap
This commit is contained in:
parent
81f14b8d36
commit
d84443b4f3
@ -614,7 +614,7 @@ void text_renderer<T>::render(pixel_position const& pos)
|
||||
{
|
||||
FT_Error error;
|
||||
FT_Vector start;
|
||||
unsigned height = pixmap_.height();
|
||||
int height = pixmap_.height();
|
||||
|
||||
start.x = static_cast<FT_Pos>(pos.x * (1 << 6));
|
||||
start.y = static_cast<FT_Pos>((height - pos.y) * (1 << 6));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user