mirror of
https://github.com/thorvg/thorvg.git
synced 2025-07-23 14:48:24 +00:00
renderer: chores++
This commit is contained in:
parent
e0d4ab2f68
commit
b1bfd22487
1 changed files with 1 additions and 3 deletions
|
@ -95,9 +95,7 @@ namespace tvg
|
|||
|
||||
uint8_t ref()
|
||||
{
|
||||
if (refCnt == UINT16_MAX) TVGERR("RENDERER", "Reference Count Overflow!");
|
||||
else ++refCnt;
|
||||
return refCnt;
|
||||
return ++refCnt;
|
||||
}
|
||||
|
||||
uint8_t unref()
|
||||
|
|
Loading…
Add table
Reference in a new issue