mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-20 06:52:03 +00:00
sw_engine rle: -- sanitizer reports.
The code is actually intended, we can modify it to ignore the annoying sanitizer reports. @Issue: https://github.com/Samsung/thorvg/issues/483
This commit is contained in:
parent
c31156e737
commit
38fa5107bf
1 changed files with 3 additions and 3 deletions
|
@ -94,7 +94,7 @@ struct RleWorker
|
|||
|
||||
static inline SwPoint UPSCALE(const SwPoint& pt)
|
||||
{
|
||||
return {pt.x << (PIXEL_BITS - 6), pt.y << (PIXEL_BITS - 6)};
|
||||
return {SwCoord(ulong(pt.x) << (PIXEL_BITS - 6)), SwCoord(ulong(pt.y) << (PIXEL_BITS - 6))};
|
||||
}
|
||||
|
||||
|
||||
|
@ -112,13 +112,13 @@ static inline SwCoord TRUNC(const SwCoord x)
|
|||
|
||||
static inline SwPoint SUBPIXELS(const SwPoint& pt)
|
||||
{
|
||||
return {pt.x << PIXEL_BITS, pt.y << PIXEL_BITS};
|
||||
return {SwCoord(ulong(pt.x) << PIXEL_BITS), SwCoord(ulong(pt.y) << PIXEL_BITS)};
|
||||
}
|
||||
|
||||
|
||||
static inline SwCoord SUBPIXELS(const SwCoord x)
|
||||
{
|
||||
return (x << PIXEL_BITS);
|
||||
return SwCoord(ulong(x) << PIXEL_BITS);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue