unsigned long int *
bitvector_allocate(size_t n)
{
- return xcalloc (sizeof (unsigned long int), DIV_RND_UP (n, BITS_PER_ULONG));
+ return xcalloc (DIV_RND_UP (n, BITS_PER_ULONG),
+ sizeof (unsigned long int));
}
size_t
return;
}
- struct value_node **nodes = xcalloc (sizeof *nodes, n_vals);
+ struct value_node **nodes = xcalloc (n_vals, sizeof *nodes);
int x = 0;
struct value_node *valnd;
HMAP_FOR_EACH (valnd, struct value_node, node, &vn->valmap)
int i;
- struct fmt_guesser **fg = xcalloc (sizeof *fg, n_vars);
+ struct fmt_guesser **fg = xcalloc (n_vars, sizeof *fg);
for (i = 0 ; i < n_vars; ++i)
{
fg[i] = fmt_guesser_create ();