bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bitset minor cleanup to pacify "make maintainer-distcheck"


From: Paul Eggert
Subject: bitset minor cleanup to pacify "make maintainer-distcheck"
Date: Fri, 22 Jul 2005 15:32:51 -0700
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

I installed this:

2005-07-22  Paul Eggert  <address@hidden>

        * lib/bitset.c (bitset_alloc): Don't cast xcalloc result.
        * lib/bitset_stats.c (bitset_stats_init): Likewise.
        * lib/bitsetv.c (bitsetv_alloc): Likewise.

Index: lib/bitset.c
===================================================================
RCS file: /cvsroot/bison/bison/lib/bitset.c,v
retrieving revision 1.13
diff -p -u -r1.13 bitset.c
--- lib/bitset.c        25 May 2005 19:47:59 -0000      1.13
+++ lib/bitset.c        22 Jul 2005 22:29:29 -0000
@@ -138,7 +138,7 @@ bitset_alloc (bitset_bindex n_bits, enum
 
   bytes = bitset_bytes (type, n_bits);
 
-  bset = (bitset) xcalloc (1, bytes);
+  bset = xcalloc (1, bytes);
 
   /* The cache is disabled until some elements are allocated.  If we
      have variable length arrays, then we may need to allocate a dummy
Index: lib/bitset_stats.c
===================================================================
RCS file: /cvsroot/bison/bison/lib/bitset_stats.c,v
retrieving revision 1.13
diff -p -u -r1.13 bitset_stats.c
--- lib/bitset_stats.c  14 May 2005 06:49:47 -0000      1.13
+++ lib/bitset_stats.c  22 Jul 2005 22:29:29 -0000
@@ -698,25 +698,25 @@ bitset_stats_init (bitset bset, bitset_b
     {
     case BITSET_ARRAY:
       bytes = abitset_bytes (n_bits);
-      sbset = (bitset) xcalloc (1, bytes);
+      sbset = xcalloc (1, bytes);
       abitset_init (sbset, n_bits);
       break;
 
     case BITSET_LIST:
       bytes = lbitset_bytes (n_bits);
-      sbset = (bitset) xcalloc (1, bytes);
+      sbset = xcalloc (1, bytes);
       lbitset_init (sbset, n_bits);
       break;
 
     case BITSET_TABLE:
       bytes = ebitset_bytes (n_bits);
-      sbset = (bitset) xcalloc (1, bytes);
+      sbset = xcalloc (1, bytes);
       ebitset_init (sbset, n_bits);
       break;
 
     case BITSET_VARRAY:
       bytes = vbitset_bytes (n_bits);
-      sbset = (bitset) xcalloc (1, bytes);
+      sbset = xcalloc (1, bytes);
       vbitset_init (sbset, n_bits);
       break;
 
Index: lib/bitsetv.c
===================================================================
RCS file: /cvsroot/bison/bison/lib/bitsetv.c,v
retrieving revision 1.10
diff -p -u -r1.10 bitsetv.c
--- lib/bitsetv.c       14 May 2005 06:49:47 -0000      1.10
+++ lib/bitsetv.c       22 Jul 2005 22:29:29 -0000
@@ -47,7 +47,7 @@ bitsetv_alloc (bitset_bindex n_vecs, bit
   /* 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++)
     {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]