Skip to content

Commit

Permalink
Prepare for csize to be changed to uint
Browse files Browse the repository at this point in the history
  • Loading branch information
Clyybber authored Oct 1, 2019
1 parent 56aa9ca commit f90f104
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cligen/sysUt.nim
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ proc `:=`*[T](x: var T, y: T): T =
proc findUO*(s: string, c: char): int {.noSideEffect.} =
proc memchr(s: pointer, c: char, n: csize): pointer {.importc:"memchr",
header:"<string.h>".}
let p = memchr(s.cstring.pointer, c, s.len)
let p = memchr(s.cstring.pointer, c, s.len.csize)
if p == nil: -1 else: (cast[uint](p) - cast[uint](s.cstring.pointer)).int

proc delete*(x: var string, i: Natural) {.noSideEffect.} =
Expand Down

0 comments on commit f90f104

Please sign in to comment.