From 154d0812120de761683949ed88ff0166d97a4dbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Sun, 15 May 2022 11:45:42 +0200 Subject: thorvg: Sync with upstream 0.8.1 And backport fix for FreeBSD support. Fixes #60003. --- thirdparty/thorvg/src/lib/sw_engine/tvgSwShape.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'thirdparty/thorvg/src/lib/sw_engine/tvgSwShape.cpp') 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(realloc(outline.cntrs, outline.reservedCntrsCnt * sizeof(uint16_t))); + outline.cntrs = static_cast(realloc(outline.cntrs, outline.reservedCntrsCnt * sizeof(uint32_t))); return true; } -- cgit v1.2.3