From bdd9f971e7b1f8c1fde54abdb3032ba697b059bd Mon Sep 17 00:00:00 2001 From: Araq Date: Thu, 16 Feb 2017 23:20:01 +0100 Subject: update code from a time when unsigned didn't exist --- compiler/trees.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler') diff --git a/compiler/trees.nim b/compiler/trees.nim index 79a460aa0..424fba14c 100644 --- a/compiler/trees.nim +++ b/compiler/trees.nim @@ -62,7 +62,7 @@ proc sameTree*(a, b: PNode): bool = # don't go nuts here: same symbol as string is enough: result = a.sym.name.id == b.sym.name.id of nkIdent: result = a.ident.id == b.ident.id - of nkCharLit..nkInt64Lit: result = a.intVal == b.intVal + of nkCharLit..nkUInt64Lit: result = a.intVal == b.intVal of nkFloatLit..nkFloat64Lit: result = a.floatVal == b.floatVal of nkStrLit..nkTripleStrLit: result = a.strVal == b.strVal of nkEmpty, nkNilLit, nkType: result = true -- cgit 1.4.1-2-gfad0 ='switch'/> This repository contains the Nim compiler, Nim's stdlib, tools, and documentation. (mirror)ahoang <ahoang@tilde.institute>
summary refs log blame commit diff stats
path: root/tests/misc/tfib.nim
blob: 34fe0dcf942be84ec787749e3fbc1bfd6c6a6858 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11