coloring: Only generate strictly positive IDs
authorJean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Sun, 21 May 2017 23:20:58 +0000 (19:20 -0400)
committerJean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Sun, 21 May 2017 23:25:31 +0000 (19:25 -0400)
commita58a1f85fd1039e8f1ed839cee98aff9ccf7b34d
treeb2f3e2c86e8fb17b91c4b79aaafa909ad325c945
parentbfe972f60b1e2e9bc47dc2e73746368c3005fdce
coloring: Only generate strictly positive IDs

This will allow to reserve negative IDs (including 0) for special purposes.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
src/compiler/coloring.nit
src/compiler/test_coloring.nit [new file with mode: 0644]