From a5b7fcf79292b933361e6f167b0500972e22e438 Mon Sep 17 00:00:00 2001 From: Juerg Billeter Date: Tue, 22 Jan 2008 17:06:09 +0000 Subject: [PATCH] fix invalid variable initializers 2008-01-22 Juerg Billeter * gee/hashmap.vala, gee/hashset.vala: fix invalid variable initializers svn path=/trunk/; revision=19 --- ChangeLog | 4 ++++ gee/hashmap.vala | 2 +- gee/hashset.vala | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 68dd5fa..9b6131e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2008-01-22 Jürg Billeter + * gee/hashmap.vala, gee/hashset.vala: fix invalid variable initializers + +2008-01-22 Jürg Billeter + * configure.ac: Post-release version bump 2008-01-22 Jürg Billeter diff --git a/gee/hashmap.vala b/gee/hashmap.vala index c6cd0f9..3868769 100644 --- a/gee/hashmap.vala +++ b/gee/hashmap.vala @@ -141,7 +141,7 @@ public class Gee.HashMap : Object, Map { private void resize () { if ((_array_size >= 3 * _nnodes && _array_size >= MIN_SIZE) || (3 * _array_size <= _nnodes && _array_size < MAX_SIZE)) { - int new_array_size = SpacedPrimes.closest (_nnodes); + int new_array_size = (int) SpacedPrimes.closest (_nnodes); new_array_size = new_array_size.clamp (MIN_SIZE, MAX_SIZE); Node[] new_nodes = new Node[new_array_size]; diff --git a/gee/hashset.vala b/gee/hashset.vala index afa674d..36ec346 100644 --- a/gee/hashset.vala +++ b/gee/hashset.vala @@ -126,7 +126,7 @@ public class Gee.HashSet : Object, Iterable, Collection, Set { private void resize () { if ((_array_size >= 3 * _nnodes && _array_size >= MIN_SIZE) || (3 * _array_size <= _nnodes && _array_size < MAX_SIZE)) { - int new_array_size = SpacedPrimes.closest (_nnodes); + int new_array_size = (int) SpacedPrimes.closest (_nnodes); new_array_size = new_array_size.clamp (MIN_SIZE, MAX_SIZE); Node[] new_nodes = new Node[new_array_size]; -- 2.7.4