+2002-03-20 Sven Neumann <sven@gimp.org>
+
+ * glib/ghash.c (g_hash_table_resize): avoid repeated call of
+ g_spaced_primes_closest() by moving it out of the CLAMP macro
+ (spotted by Salmaso Raffaele).
+
2002-03-17 Tor Lillqvist <tml@iki.fi>
* README.win32: Add MSVC-specific text by Hans Breuer.
+2002-03-20 Sven Neumann <sven@gimp.org>
+
+ * glib/ghash.c (g_hash_table_resize): avoid repeated call of
+ g_spaced_primes_closest() by moving it out of the CLAMP macro
+ (spotted by Salmaso Raffaele).
+
2002-03-17 Tor Lillqvist <tml@iki.fi>
* README.win32: Add MSVC-specific text by Hans Breuer.
+2002-03-20 Sven Neumann <sven@gimp.org>
+
+ * glib/ghash.c (g_hash_table_resize): avoid repeated call of
+ g_spaced_primes_closest() by moving it out of the CLAMP macro
+ (spotted by Salmaso Raffaele).
+
2002-03-17 Tor Lillqvist <tml@iki.fi>
* README.win32: Add MSVC-specific text by Hans Breuer.
+2002-03-20 Sven Neumann <sven@gimp.org>
+
+ * glib/ghash.c (g_hash_table_resize): avoid repeated call of
+ g_spaced_primes_closest() by moving it out of the CLAMP macro
+ (spotted by Salmaso Raffaele).
+
2002-03-17 Tor Lillqvist <tml@iki.fi>
* README.win32: Add MSVC-specific text by Hans Breuer.
+2002-03-20 Sven Neumann <sven@gimp.org>
+
+ * glib/ghash.c (g_hash_table_resize): avoid repeated call of
+ g_spaced_primes_closest() by moving it out of the CLAMP macro
+ (spotted by Salmaso Raffaele).
+
2002-03-17 Tor Lillqvist <tml@iki.fi>
* README.win32: Add MSVC-specific text by Hans Breuer.
+2002-03-20 Sven Neumann <sven@gimp.org>
+
+ * glib/ghash.c (g_hash_table_resize): avoid repeated call of
+ g_spaced_primes_closest() by moving it out of the CLAMP macro
+ (spotted by Salmaso Raffaele).
+
2002-03-17 Tor Lillqvist <tml@iki.fi>
* README.win32: Add MSVC-specific text by Hans Breuer.
+2002-03-20 Sven Neumann <sven@gimp.org>
+
+ * glib/ghash.c (g_hash_table_resize): avoid repeated call of
+ g_spaced_primes_closest() by moving it out of the CLAMP macro
+ (spotted by Salmaso Raffaele).
+
2002-03-17 Tor Lillqvist <tml@iki.fi>
* README.win32: Add MSVC-specific text by Hans Breuer.
gint new_size;
gint i;
- new_size = CLAMP(g_spaced_primes_closest (hash_table->nnodes),
- HASH_TABLE_MIN_SIZE,
- HASH_TABLE_MAX_SIZE);
+ new_size = g_spaced_primes_closest (hash_table->nnodes);
+ new_size = CLAMP (new_size, HASH_TABLE_MIN_SIZE, HASH_TABLE_MAX_SIZE);
+
new_nodes = g_new0 (GHashNode*, new_size);
for (i = 0; i < hash_table->size; i++)