Skip to content

Commit a1626be

Browse files
authored
Merge pull request #79 from nim-lang/master
mark unmarshal with gcsafe
2 parents b566405 + e671f7d commit a1626be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/telebot/private/utils.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ proc formatName(s: string): string =
117117

118118
proc put*[T](s: var seq[T], n: JsonNode) {.inline.}
119119

120-
proc unmarshal*(n: JsonNode, T: typedesc): T =
120+
proc unmarshal*(n: JsonNode, T: typedesc): T {.gcsafe.} =
121121
when T is TelegramObject:
122122
for name, value in result.fieldPairs:
123123
when not value.hasCustomPragma(telebotInternalUse):

0 commit comments

Comments
 (0)