2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
* hash-table.h (hash_table::empty_slow): Don't assign
size_t values to int variables.
From-SVN: r276592
+2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
+
+ * hash-table.h (hash_table::empty_slow): Don't assign
+ size_t values to int variables.
+
2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
* expr.c (convert_mode_scalar): Remove shadowing local var.
size_t size = m_size;
size_t nsize = size;
value_type *entries = m_entries;
- int i;
- for (i = size - 1; i >= 0; i--)
+ for (size_t i = size - 1; i < size; i--)
if (!is_empty (entries[i]) && !is_deleted (entries[i]))
Descriptor::remove (entries[i]);
if (nsize != size)
{
- int nindex = hash_table_higher_prime_index (nsize);
- int nsize = prime_tab[nindex].prime;
+ unsigned int nindex = hash_table_higher_prime_index (nsize);
+
+ nsize = prime_tab[nindex].prime;
if (!m_ggc)
Allocator <value_type> ::data_free (m_entries);