Commit ebab4578 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Fix implicit conversion in tstepsNewEntry.

parent 9d13437e
......@@ -41,7 +41,8 @@ int tstepsNewEntry(stream_t *streamptr)
{
if ( tstepsTableSize == 0 ) tstepsTableSize = 1;
tstepsTableSize = 2*tstepsTableSize;
tstepsTable = (tsteps_t *) realloc(tstepsTable, tstepsTableSize*sizeof(tsteps_t));
tstepsTable = (tsteps_t *)xrealloc(tstepsTable,
(size_t)tstepsTableSize * sizeof (tsteps_t));
if ( tstepsTable == NULL )
{
Message("tstepsTableSize = %d", tstepsTableSize);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment