mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-03 02:18:00 +00:00
stdlib: minor changes to avoid compiler warnings
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user