1
0
mirror of https://git.savannah.gnu.org/git/gperf.git synced 2025-12-02 21:19:24 +00:00

Simplify Bool_Array.

This commit is contained in:
Bruno Haible
2002-10-17 14:10:32 +00:00
parent a50f8b1712
commit a6fd7cc006
5 changed files with 15 additions and 17 deletions

View File

@@ -275,11 +275,11 @@ int
Gen_Perf::operator() (void)
{
#if LARGE_STACK_ARRAYS
STORAGE_TYPE buffer[max_hash_value + 1];
unsigned int buffer[max_hash_value + 1];
#else
// Note: we don't use new, because that invokes a custom operator new.
STORAGE_TYPE *buffer
= (STORAGE_TYPE*) malloc (sizeof(STORAGE_TYPE) * (max_hash_value + 1));
unsigned int *buffer
= (unsigned int*) malloc (sizeof(unsigned int) * (max_hash_value + 1));
if (buffer == NULL)
abort ();
#endif