From 4f4579480c7a6c351cd91c54f54da323c0fc26fb Mon Sep 17 00:00:00 2001 From: Andy Davidoff Date: Mon, 25 Nov 2019 22:48:17 -0500 Subject: [PATCH] 0.0.8: fixes for nim-1.0 --- nimph.nimble | 2 +- src/nimph/git.nim | 4 ++-- src/nimph/version.nim | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nimph.nimble b/nimph.nimble index af21cc1..64dd258 100644 --- a/nimph.nimble +++ b/nimph.nimble @@ -1,4 +1,4 @@ -version = "0.0.7" +version = "0.0.8" author = "disruptek" description = "nim package handler from the future" license = "MIT" diff --git a/src/nimph/git.nim b/src/nimph/git.nim index b6163ff..0c344ba 100644 --- a/src/nimph/git.nim +++ b/src/nimph/git.nim @@ -217,7 +217,7 @@ proc summary*(thing: GitThing): string = raise newException(ValueError, "dunno how to get a summary: " & $thing) result = result.strip -proc free*(table: GitTagTable) = +proc free*(table: var GitTagTable) = for tag, obj in table.pairs: when tag is GitTag: tag.free @@ -308,7 +308,7 @@ proc tagList*(repo: GitRepository; tags: var seq[string]): int = var list: git_strarray result = git_tag_list(addr list, repo) - if list.count > 0: + if list.count > 0'u: tags = cstringArrayToSeq(cast[cstringArray](list.strings), list.count) git_strarray_free(addr list) diff --git a/src/nimph/version.nim b/src/nimph/version.nim index c1c8391..86ef739 100644 --- a/src/nimph/version.nim +++ b/src/nimph/version.nim @@ -179,7 +179,7 @@ proc acceptable*(mask: VersionMaskField; op: Operator; result = mask.isNone or value == mask.get of Caret: result = mask.isNone - result = result or (value >= mask.get and mask.get > 0) + result = result or (value >= mask.get and mask.get > 0'u) result = result or (value == 0 and mask.get == 0) of Tilde: result = mask.isNone or value >= mask.get