Mark validateChunk and parseChunk gcsafe

This commit is contained in:
Yuriy Glukhov 2017-07-12 22:59:57 +03:00 committed by GitHub
parent 44347c05c0
commit 3ff7bdd381
1 changed files with 2 additions and 2 deletions

View File

@ -363,8 +363,8 @@ proc bitDepthAllowed(colorType: PNGcolorType, bitDepth: int): bool =
of LCT_PALETTE: result = bitDepth in {1, 2, 4, 8}
else: result = bitDepth in {8, 16}
method validateChunk(chunk: PNGChunk, png: PNG): bool {.base.} = true
method parseChunk(chunk: PNGChunk, png: PNG): bool {.base.} = true
method validateChunk(chunk: PNGChunk, png: PNG): bool {.base, gcsafe.} = true
method parseChunk(chunk: PNGChunk, png: PNG): bool {.base, gcsafe.} = true
method validateChunk(header: PNGHeader, png: PNG): bool =
if header.width < 1 or header.width > 0x7FFFFFFF: