summaryrefslogtreecommitdiff
path: root/thirdparty/thorvg/src/lib/sw_engine/tvgSwShape.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-05-15 11:45:42 +0200
committerRémi Verschelde <rverschelde@gmail.com>2022-05-15 11:45:42 +0200
commit154d0812120de761683949ed88ff0166d97a4dbe (patch)
tree0333e669eeea7ddc0d68111d6bcaf2d8875ff47c /thirdparty/thorvg/src/lib/sw_engine/tvgSwShape.cpp
parenta38aafca3e25a5a2b7da497f0dd4baa9d5423605 (diff)
thorvg: Sync with upstream 0.8.1
And backport fix for FreeBSD support. Fixes #60003.
Diffstat (limited to 'thirdparty/thorvg/src/lib/sw_engine/tvgSwShape.cpp')
-rw-r--r--thirdparty/thorvg/src/lib/sw_engine/tvgSwShape.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/thirdparty/thorvg/src/lib/sw_engine/tvgSwShape.cpp b/thirdparty/thorvg/src/lib/sw_engine/tvgSwShape.cpp
index 2a2c6a1da3..e5b540bcc3 100644
--- a/thirdparty/thorvg/src/lib/sw_engine/tvgSwShape.cpp
+++ b/thirdparty/thorvg/src/lib/sw_engine/tvgSwShape.cpp
@@ -64,7 +64,7 @@ static bool _growOutlineContour(SwOutline& outline, uint32_t n)
{
if (outline.reservedCntrsCnt >= outline.cntrsCnt + n) return false;
outline.reservedCntrsCnt = outline.cntrsCnt + n;
- outline.cntrs = static_cast<uint16_t*>(realloc(outline.cntrs, outline.reservedCntrsCnt * sizeof(uint16_t)));
+ outline.cntrs = static_cast<uint32_t*>(realloc(outline.cntrs, outline.reservedCntrsCnt * sizeof(uint32_t)));
return true;
}