Commit a5b7fcf7 authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter
Browse files

fix invalid variable initializers

2008-01-22  Juerg Billeter  <j@bitron.ch>

	* gee/hashmap.vala, gee/hashset.vala: fix invalid variable initializers

svn path=/trunk/; revision=19
parent c9fde020
2008-01-22 Jürg Billeter <j@bitron.ch>
* gee/hashmap.vala, gee/hashset.vala: fix invalid variable initializers
2008-01-22 Jürg Billeter <j@bitron.ch>
* configure.ac: Post-release version bump
......
......@@ -141,7 +141,7 @@ public class Gee.HashMap<K,V> : Object, Map<K,V> {
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<K,V>[] new_nodes = new Node<K,V>[new_array_size];
......
......@@ -126,7 +126,7 @@ public class Gee.HashSet<G> : Object, Iterable<G>, Collection<G>, Set<G> {
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<G>[] new_nodes = new Node<G>[new_array_size];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment