Skip to content

Commit

Permalink
0.0.8: fixes for nim-1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
disruptek committed Nov 26, 2019
1 parent da6f05f commit 4f45794
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion nimph.nimble
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = "0.0.7"
version = "0.0.8"
author = "disruptek"
description = "nim package handler from the future"
license = "MIT"
Expand Down
4 changes: 2 additions & 2 deletions src/nimph/git.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion src/nimph/version.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4f45794

Please sign in to comment.