Skip to content

Commit

Permalink
nim 0.20.0
Browse files Browse the repository at this point in the history
  • Loading branch information
niv committed Jun 10, 2019
1 parent 870908d commit f685216
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ not need to install anything else.

## Install for library use

* Install nim 0.19.4 or greater, have it on PATH and working. The best way to do this
* Install nim 0.20.0 or greater, have it on PATH and working. The best way to do this
as of this writing is https://github.com/dom96/choosenim, which will install it
for your user on Linux/OSX, and on Windows will even pull in the required compiler
and package manager.
Expand Down
2 changes: 1 addition & 1 deletion neverwinter.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ author = "Bernhard Stöckner <[email protected]>"
description = "Neverwinter Nights 1: Enhanced Edition data accessor library and utilities"
license = "MIT"

requires "nim >= 0.19.4"
requires "nim >= 0.20.0"

installDirs = @["neverwinter"]

Expand Down
2 changes: 1 addition & 1 deletion nwn_resman_stats.nim
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ proc printStats(entry: StatsForContainer) =
align($k, spacings[0]), " ",
align($v, spacings[1]), " ",
align(entry.resSizes.getOrDefault(k).formatSize, spacings[2]), " ",
align($entry.resShadowedTypes.getOrDefault(k), spacings[3]), " ",
align($entry.resShadowedTypes.getOrDefault(k, 0), spacings[3]), " ",
align(entry.resShadowedSizes.getOrDefault(k).formatSize, spacings[4])
echo " ", repeat("-", spacings.sum + spacings.len*2)

Expand Down
2 changes: 1 addition & 1 deletion private/arpie.nim
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ proc `==`*[T](a, b: StaticValue[T]): bool = true # im a hack
# proc `$`*[T](t: StaticValue[T]): string = T.string
# proc `$`*[T](t: SizePrefixedString[T]): string = t.string

converter staticValue2String*[T](s: StaticValue[T]): string = T.string
# converter staticValue2String*[T](s: StaticValue[T]): string = T.string
# converter sizedString2String*[T](s: SizePrefixedString[T]): string = s.string
# converter string2SizedString*[T](s: string): SizePrefixedString[T] = s.SizePrefixedString
# converter discardValue2String*[T](s: DiscardValue[T]): string = ""
Expand Down
2 changes: 1 addition & 1 deletion private/shared.nim
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ proc DOC*(body: string): Table[string, docopt_internal.Value] =
debug("Other file encoding: " & getNativeEncoding())

if Args.hasKey("--add-restypes") and Args["--add-restypes"]:
let types = ($Args["--add-restypes"]).split(",").mapIt(seq[string], it.split(":"))
let types = ($Args["--add-restypes"]).split(",").mapIt(it.split(":"))
for ty in types:
if ty.len != 2:
raise newException(ValueError,
Expand Down

0 comments on commit f685216

Please sign in to comment.