Modification of the numbering in perfect_hashing.
authorJulien Pagès <julien.projet@gmail.com>
Wed, 11 Jun 2014 22:00:44 +0000 (00:00 +0200)
committerJulien Pagès <julien.projet@gmail.com>
Fri, 13 Jun 2014 13:47:00 +0000 (15:47 +0200)
The numbering now start at 1 instead of 0.

Signed-off-by: Julien Pagès <julien.projet@gmail.com>

lib/perfect_hashing.nit

index 9ac59f3..a4b8417 100644 (file)
@@ -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