From d84a3b10b5540d77a3501b9269dabeaedad542de Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Sun, 9 May 2021 11:34:28 +0200 Subject: [PATCH] fixes #17675 (#17981) --- compiler/docgen.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/docgen.nim b/compiler/docgen.nim index d04fbadd1..fac4a8def 100644 --- a/compiler/docgen.nim +++ b/compiler/docgen.nim @@ -206,7 +206,7 @@ proc newDocumentor*(filename: AbsoluteFile; cache: IdentCache; conf: ConfigRef, proc (gen: var RstGenerator; filename, cmd: string; status: int; content: string) = if conf.docCmd == docCmdSkip: return inc(gen.id) - var d = TDocumentor(gen) + var d = (ptr TDocumentor)(addr gen) var outp: AbsoluteFile if filename.len == 0: let nameOnly = splitFile(d.filename).name