Skip to content

Commit 1a745e7

Browse files
committed
fix: compiling on Nim 2.0
FossilOrigin-Name: 422e2a2e3c1069719ccf7ea4d24ed8c17dc53cc65bbca37a77fd6aabbbb5f570
1 parent cb49116 commit 1a745e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/types.nim

+2-2
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ proc len*(path: Path): Natural {.sideEffect, raises: [], tags: [],
191191
##
192192
## The lenght of the parameter path
193193
body:
194-
return ($path).len
194+
return path.string.len
195195

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

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

0 commit comments

Comments
 (0)