diff options
Diffstat (limited to 'lib/pure')
-rw-r--r-- | lib/pure/asyncdispatch.nim | 4 | ||||
-rw-r--r-- | lib/pure/asyncfutures.nim | 2 | ||||
-rw-r--r-- | lib/pure/random.nim | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/lib/pure/asyncdispatch.nim b/lib/pure/asyncdispatch.nim index 820f34703..edd509f50 100644 --- a/lib/pure/asyncdispatch.nim +++ b/lib/pure/asyncdispatch.nim @@ -1125,7 +1125,7 @@ else: proc unregister*(ev: AsyncEvent) = getGlobalDispatcher().selector.unregister(SelectEvent(ev)) - + proc contains*(disp: PDispatcher, fd: AsyncFd): bool = return fd.SocketHandle in disp.selector @@ -1514,7 +1514,7 @@ proc poll*(timeout = 500) = discard runOnce(timeout) # Common procedures between current and upcoming asyncdispatch -include includes.asynccommon +include includes/asynccommon proc sleepAsync*(ms: int | float): Future[void] = ## Suspends the execution of the current async procedure for the next diff --git a/lib/pure/asyncfutures.nim b/lib/pure/asyncfutures.nim index 5bf9183ed..df0e7c17e 100644 --- a/lib/pure/asyncfutures.nim +++ b/lib/pure/asyncfutures.nim @@ -250,7 +250,7 @@ proc `$`*(entries: seq[StackTraceEntry]): string = indent.inc(2) else: indent.dec(2) - result.add(spaces(indent)& "]#\n") + result.add(spaces(indent) & "]#\n") continue let left = "$#($#)" % [$entry.filename, $entry.line] diff --git a/lib/pure/random.nim b/lib/pure/random.nim index e565fccf8..a2c2c1f88 100644 --- a/lib/pure/random.nim +++ b/lib/pure/random.nim @@ -66,7 +66,7 @@ proc skipRandomNumbers*(s: var Rand) = s0 = ui 0 s1 = ui 0 for i in 0..high(helper): - for b in 0..< 64: + for b in 0 ..< 64: if (helper[i] and (ui(1) shl ui(b))) != 0: s0 = s0 xor s.a0 s1 = s1 xor s.a1 |