]> git.saurik.com Git - bison.git/blobdiff - lib/bitsetv.c
* lib/bitset.c (bitset_alloc): Don't cast xcalloc result.
[bison.git] / lib / bitsetv.c
index e89f7daeebc028cfb020d94723931abfc4308941..90d1e1bfefb20239a0c0ae5e7a0482814f8b2c58 100644 (file)
@@ -47,7 +47,7 @@ bitsetv_alloc (bitset_bindex n_vecs, bitset_bindex n_bits,
   /* Allocate vector table at head of bitset array.  */
   vector_bytes = (n_vecs + 1) * sizeof (bitset) + bytes - 1;
   vector_bytes -= vector_bytes % bytes;
-  bsetv = (bitset *) xcalloc (1, vector_bytes + bytes * n_vecs);
+  bsetv = xcalloc (1, vector_bytes + bytes * n_vecs);
 
   for (i = 0; i < n_vecs; i++)
     {