makes DrNim compile again (#17584)

This commit is contained in:
Andreas Rumpf 2021-03-30 20:13:18 +02:00 • committed by GitHub
commit 5ecbe67371
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 13 deletions

View file

@ -393,8 +393,9 @@ proc registerModule*(g: ModuleGraph; m: PSym) =
proc registerModuleById*(g: ModuleGraph; m: FileIndex) =
registerModule(g, g.packed[int m].module)
proc initOperators(g: ModuleGraph): Operators =
proc initOperators*(g: ModuleGraph): Operators =
# These are safe for IC.
# Public because it's used by DrNim.
result.opLe = createMagic(g, "<=", mLeI)
result.opLt = createMagic(g, "<", mLtI)
result.opAnd = createMagic(g, "and", mAnd)