diff options
-rw-r--r-- | compiler/semgnrc.nim | 3 | ||||
-rw-r--r-- | lib/pure/base64.nim | 2 | ||||
-rw-r--r-- | lib/pure/collections/deques.nim | 2 | ||||
-rw-r--r-- | lib/system/platforms.nim | 3 |
4 files changed, 6 insertions, 4 deletions
diff --git a/compiler/semgnrc.nim b/compiler/semgnrc.nim index 615413fc6..ebd361db6 100644 --- a/compiler/semgnrc.nim +++ b/compiler/semgnrc.nim @@ -189,6 +189,9 @@ proc semGenericStmt(c: PContext, n: PNode, case n.kind of nkIdent, nkAccQuoted: result = lookup(c, n, flags, ctx) + if result != nil and result.kind == nkSym: + assert result.sym != nil + markUsed(c, n.info, result.sym) of nkDotExpr: #let luf = if withinMixin notin flags: {checkUndeclared} else: {} #var s = qualifiedLookUp(c, n, luf) diff --git a/lib/pure/base64.nim b/lib/pure/base64.nim index daba786f2..513ec5826 100644 --- a/lib/pure/base64.nim +++ b/lib/pure/base64.nim @@ -132,7 +132,7 @@ template encodeInternal(s, alphabet: typed): untyped = result.setLen(outputIndex) template encodeImpl() {.dirty.} = - when nimVM: + when nimvm: block: let lookupTableVM = if safe: cb64safeVM else: cb64VM encodeInternal(s, lookupTableVM) diff --git a/lib/pure/collections/deques.nim b/lib/pure/collections/deques.nim index c378dff1d..fe9ceca1e 100644 --- a/lib/pure/collections/deques.nim +++ b/lib/pure/collections/deques.nim @@ -262,7 +262,7 @@ proc expandIfNeeded[T](deq: var Deque[T]) = var n = newSeq[T](cap * 2) var i = 0 for x in mitems(deq): - when nimVM: n[i] = x # workaround for VM bug + when nimvm: n[i] = x # workaround for VM bug else: n[i] = move(x) inc i deq.data = move(n) diff --git a/lib/system/platforms.nim b/lib/system/platforms.nim index 50b818956..bd6541b6a 100644 --- a/lib/system/platforms.nim +++ b/lib/system/platforms.nim @@ -40,8 +40,7 @@ type OsPlatform* {.pure.} = enum ## the OS this program will run on. none, dos, windows, os2, linux, morphos, skyos, solaris, irix, netbsd, freebsd, openbsd, aix, palmos, qnx, amiga, - atari, netware, macos, macosx, haiku, android, js, - standalone, nintendoswitch + atari, netware, macos, macosx, haiku, android, js, standalone, nintendoswitch const targetOS* = when defined(windows): OsPlatform.windows |