Attempt to fix build issues in nim-beacon-chain

This commit is contained in:
Zahary Karadjov 2019-07-03 10:15:40 +03:00
parent 8fe16bcd9d
commit 5691b05a2f
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ proc findPragma*(pragmas: NimNode, pragmaSym: NimNode): NimNode =
return p
template readPragma*(field: FieldDescription, pragmaName: static string): NimNode =
let p = field.pragmas.findPragma bindSym(pragmaName)
let p = findPragma(field.pragmas, bindSym(pragmaName))
if p != nil and p.len == 2: p[1] else: p
iterator recordFields*(typeImpl: NimNode): FieldDescription =