mirror of https://github.com/status-im/nimPNG.git
Mark validateChunk and parseChunk gcsafe
This commit is contained in:
parent
44347c05c0
commit
3ff7bdd381
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue