summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2021-05-09 11:34:28 +0200
committerGitHub <noreply@github.com>2021-05-09 11:34:28 +0200
commitd84a3b10b5540d77a3501b9269dabeaedad542de (patch)
tree9a6b160902f4041aaaf097698aec2f58a70b0a38
parent69710e4548dcc56ce395edd227fb5298ea78ff78 (diff)
downloadNim-d84a3b10b5540d77a3501b9269dabeaedad542de.tar.gz
fixes #17675 (#17981)
-rw-r--r--compiler/docgen.nim2
1 files changed, 1 insertions, 1 deletions
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