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
|
|
@ -1514,7 +1514,7 @@ proc poll*(timeout = 500) =
|
||||||
discard runOnce(timeout)
|
discard runOnce(timeout)
|
||||||
|
|
||||||
# Common procedures between current and upcoming asyncdispatch
|
# Common procedures between current and upcoming asyncdispatch
|
||||||
include includes.asynccommon
|
include includes/asynccommon
|
||||||
|
|
||||||
proc sleepAsync*(ms: int | float): Future[void] =
|
proc sleepAsync*(ms: int | float): Future[void] =
|
||||||
## Suspends the execution of the current async procedure for the next
|
## Suspends the execution of the current async procedure for the next
|
||||||
|
|
|
||||||
|
|
@ -250,7 +250,7 @@ proc `$`*(entries: seq[StackTraceEntry]): string =
|
||||||
indent.inc(2)
|
indent.inc(2)
|
||||||
else:
|
else:
|
||||||
indent.dec(2)
|
indent.dec(2)
|
||||||
result.add(spaces(indent)& "]#\n")
|
result.add(spaces(indent) & "]#\n")
|
||||||
continue
|
continue
|
||||||
|
|
||||||
let left = "$#($#)" % [$entry.filename, $entry.line]
|
let left = "$#($#)" % [$entry.filename, $entry.line]
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,7 @@ proc skipRandomNumbers*(s: var Rand) =
|
||||||
s0 = ui 0
|
s0 = ui 0
|
||||||
s1 = ui 0
|
s1 = ui 0
|
||||||
for i in 0..high(helper):
|
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:
|
if (helper[i] and (ui(1) shl ui(b))) != 0:
|
||||||
s0 = s0 xor s.a0
|
s0 = s0 xor s.a0
|
||||||
s1 = s1 xor s.a1
|
s1 = s1 xor s.a1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue