writeChunk -> gcsafe

This commit is contained in:
Yuriy Glukhov 2017-07-13 00:48:10 +03:00 committed by GitHub
parent 3ff7bdd381
commit a8202352a8

View File

@ -2001,7 +2001,7 @@ proc writeInt32BE(s: Stream, value: int) =
bigEndian32(addr(tmp), addr(val))
s.write(tmp)
method writeChunk(chunk: PNGChunk, png: PNG): bool {.base.} = true
method writeChunk(chunk: PNGChunk, png: PNG): bool {.base, gcsafe.} = true
method writeChunk(chunk: PNGHeader, png: PNG): bool =
#estimate 13 bytes