Various code style improvements

This commit is contained in:
Simon Giesecke
2018-08-09 14:08:43 +02:00
parent 53e9af71af
commit 46ed0920b2
3 changed files with 21 additions and 22 deletions

View File

@@ -86,7 +86,7 @@ bool zmq::trie_t::add (unsigned char *prefix_, size_t size_)
unsigned short old_count = _count;
_count = c - _min + 1;
_next.table = static_cast<trie_t **> (
realloc ((void *) _next.table, sizeof (trie_t *) * _count));
realloc (_next.table, sizeof (trie_t *) * _count));
zmq_assert (_next.table);
for (unsigned short i = old_count; i != _count; i++)
_next.table[i] = NULL;