mirror of
https://git.savannah.gnu.org/git/gperf.git
synced 2025-12-02 21:19:24 +00:00
Avoid g++ -Wold-style-cast warnings.
This commit is contained in:
@@ -35,7 +35,8 @@ Bool_Array::Bool_Array (unsigned int size)
|
||||
memset (_storage_array, 0, size * sizeof (_storage_array[0]));
|
||||
if (option[DEBUG])
|
||||
fprintf (stderr, "\nbool array size = %d, total bytes = %d\n",
|
||||
_size, (unsigned int) (_size * sizeof (_storage_array[0])));
|
||||
_size,
|
||||
static_cast<unsigned int> (_size * sizeof (_storage_array[0])));
|
||||
}
|
||||
|
||||
/* Sets the specified bit to true.
|
||||
|
||||
Reference in New Issue
Block a user