Skip to content

Commit

Permalink
fix(warn): numTypes/
Browse files Browse the repository at this point in the history
  • Loading branch information
litlighilit committed Jul 31, 2024
1 parent 89c44b5 commit 077b00c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 0 additions & 5 deletions src/pylib/numTypes/floats/parse_inf_nan.nim
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ func parse_inf_or_nan*(ori_s: openArray[char], res: var float): int =
for i, c in b:
if a[i+start].toLowerAscii != c:
return false
func `~=`(a, b: openArray[char]): bool =
## b must be in lower case
if a.len != b.len:
return false
a.iStartsWith b
var negate = false
let first = ori_s[0]
result =
Expand Down
4 changes: 3 additions & 1 deletion src/pylib/numTypes/utils/stripOpenArray.nim
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
import std/unicode except strip
import ../../pystring/consts

func stripAsRange*(s: openArray[char], leading, trailing: static[bool] = true,
func stripAsRange*(s: openArray[char],
leading: static[bool] = true,
trailing: static[bool] = true,
runes: openArray[Rune] = unicodeSpaces): tuple[first, last: int] =
## `s[first..last]` will be stripped data.
var
Expand Down

0 comments on commit 077b00c

Please sign in to comment.