From 69a595480790d985f2d2f79d5d74bb6adb8568a7 Mon Sep 17 00:00:00 2001 From: Dominik Picheta Date: Thu, 5 Jun 2014 23:12:22 +0100 Subject: [PATCH] Capitalised enum value names in JSON module. --- lib/pure/json.nim | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/pure/json.nim b/lib/pure/json.nim index 0476dc2aec..799cd6d582 100644 --- a/lib/pure/json.nim +++ b/lib/pure/json.nim @@ -642,19 +642,19 @@ proc `==`* (a,b: PJsonNode): bool = proc hash* (n:PJsonNode): THash = ## Compute the hash for a JSON node case n.kind - of jArray: + of JArray: result = hash(n.elems) - of jObject: + of JObject: result = hash(n.fields) - of jInt: + of JInt: result = hash(n.num) - of jFloat: + of JFloat: result = hash(n.fnum) - of jBool: + of JBool: result = hash(n.bval.int) - of jString: + of JString: result = hash(n.str) - of jNull: + of JNull: result = hash(0) proc len*(n: PJsonNode): int =