From 18b8617d37a746b835f798b3a3646c30aebd3921 Mon Sep 17 00:00:00 2001 From: mratsim Date: Thu, 1 Mar 2018 13:43:42 +0100 Subject: [PATCH] toHex: array indexing requires explicit bytes->int conversion on latest devel --- src/private/lowlevel_types.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/private/lowlevel_types.nim b/src/private/lowlevel_types.nim index dac9c89..f618c1e 100644 --- a/src/private/lowlevel_types.nim +++ b/src/private/lowlevel_types.nim @@ -116,5 +116,5 @@ proc toHex*[N: static[int]](ba: ByteArrayBE[N]): string {.noSideEffect.}= result = newString(2*N) for i in 0 ..< N: - result[2*i] = hexChars[ba[i] shr 4 and 0xF] - result[2*i+1] = hexChars[ba[i] and 0xF] + result[2*i] = hexChars[int ba[i] shr 4 and 0xF] + result[2*i+1] = hexChars[int ba[i] and 0xF]