Skip to content

Commit

Permalink
fix: compiling on Nim 2.0
Browse files Browse the repository at this point in the history
FossilOrigin-Name: 422e2a2e3c1069719ccf7ea4d24ed8c17dc53cc65bbca37a77fd6aabbbb5f570
  • Loading branch information
thindil committed Nov 5, 2024
1 parent cb49116 commit 1a745e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/types.nim
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ proc len*(path: Path): Natural {.sideEffect, raises: [], tags: [],
##
## The lenght of the parameter path
body:
return ($path).len
return path.string.len

proc dbType*(T: typedesc[Path]): string {.raises: [], tags: [],
contractual.} =
Expand All @@ -211,7 +211,7 @@ proc dbValue*(val: Path): DbValue {.raises: [], tags: [],
##
## Returns the converted val parameter
body:
dbValue(v = $val)
dbValue(v = val.string)

proc to*(dbVal: DbValue, T: typedesc[Path]): T {.raises: [], tags: [
], contractual.} =
Expand Down

0 comments on commit 1a745e7

Please sign in to comment.