From: Julien Pagès Date: Wed, 11 Jun 2014 22:00:44 +0000 (+0200) Subject: Modification of the numbering in perfect_hashing. X-Git-Tag: v0.6.6~30^2~1 X-Git-Url: http://nitlanguage.org?hp=ad655a60a25cecaf109b1c92dd075478f3df7d97 Modification of the numbering in perfect_hashing. The numbering now start at 1 instead of 0. Signed-off-by: Julien Pagès --- diff --git a/lib/perfect_hashing.nit b/lib/perfect_hashing.nit index 9ac59f3..a4b8417 100644 --- a/lib/perfect_hashing.nit +++ b/lib/perfect_hashing.nit @@ -35,7 +35,7 @@ class Perfecthashing do # By default, all identifiers are available interval = new List[Couple[nullable Int, nullable Int]] - interval.push(new Couple[nullable Int, nullable Int](0, null)) + interval.push(new Couple[nullable Int, nullable Int](1, null)) tempht = new Array[nullable Int] end