Fix for latest Nim

This commit is contained in:
Ruslan Mustakov 2017-11-01 19:53:09 +01:00
commit 57396065ce
2 changed files with 4 additions and 3 deletions

View file

@ -10,10 +10,11 @@ type
template toHex(s: string, start: Natural,
x: BiggestInt, len: Positive) =
const HexChars = "0123456789abcdef"
const HexChars = ['0', '1', '2', '3', '4', '5', '6', '7', '8',
'9', 'a', 'b', 'c', 'd', 'e', 'f']
var n = x
for j in countdown(len - 1, 0):
s[start + j] = HexChars[n and 0xF]
s[start + j] = HexChars[int(n and 0xF)]
n = n shr 4
# handle negative overflow
if n == 0 and x < 0: n = -1

View file

@ -1,6 +1,6 @@
[Package]
name: "uuids"
version: "0.1.7"
version: "0.1.8"
author: "Xored Software, Inc."
description: "UUID library"
license: "MIT"