From edb5a1a5c6b8381c41561f303aa3588ff5fbab69 Mon Sep 17 00:00:00 2001 From: Kier Davis Date: Sat, 18 Jun 2016 15:43:32 +0100 Subject: [PATCH] Fix clear() on CountTable The record tuples used in CountData.data don't contain an 'hcode' member, unlike Table and OrderedTable, causing the existing clearImpl() implementation to break when attempting to assign to t.data[i].hcode. --- lib/pure/collections/tableimpl.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/pure/collections/tableimpl.nim b/lib/pure/collections/tableimpl.nim index 1bbf19ee93..f736320081 100644 --- a/lib/pure/collections/tableimpl.nim +++ b/lib/pure/collections/tableimpl.nim @@ -142,7 +142,8 @@ template delImpl() {.dirty, immediate.} = template clearImpl() {.dirty, immediate.} = for i in 0 ..