stdlib: minor changes to avoid compiler warnings
This commit is contained in:
parent
2e477979a4
commit
541debe6e1
3 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue