diff options
author | Araq <rumpf_a@web.de> | 2018-08-13 23:16:03 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2018-08-13 23:16:03 +0200 |
commit | f91a181f58acfa7c75e4683e582455c98bc8693d (patch) | |
tree | effd60801042c890188135337556e70eceaf16d7 /lib | |
parent | a0cde8cee6fab6983b18562faa016bb340b6b0a7 (diff) | |
download | Nim-f91a181f58acfa7c75e4683e582455c98bc8693d.tar.gz |
make tests green again
Diffstat (limited to 'lib')
-rw-r--r-- | lib/system.nim | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/system.nim b/lib/system.nim index 4b69a8067..c730167ed 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -2344,8 +2344,12 @@ proc `==`*[T](x, y: seq[T]): bool {.noSideEffect.} = ## Generic equals operator for sequences: relies on a equals operator for ## the element type `T`. when nimvm: - if x.isNil and y.isNil: - return true + when not defined(nimNoNil): + if x.isNil and y.isNil: + return true + else: + if x.len == 0 and y.len == 0: + return true else: when not defined(JS): proc seqToPtr[T](x: seq[T]): pointer {.inline, nosideeffect.} = |