Skip to content
Snippets Groups Projects
Commit ebab4578 authored by Thomas Jahns's avatar Thomas Jahns :cartwheel:
Browse files

Fix implicit conversion in tstepsNewEntry.

parent 9d13437e
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment