Commit 893c4f33 authored by Ken Martin's avatar Ken Martin
Browse files

address a gcc warning related to youngsmaterialinterface

Had potential for a negative allocation
parent 23ec83e4
......@@ -2565,7 +2565,9 @@ namespace vtkYoungsMaterialInterfaceCellCutInternals
#endif
)
{
ALLOC_LOCAL_ARRAY( derivatives, REAL2, nv-1 );
// only need nv-1 derivs but allocate nv as gcc freaks out
// with nv-1 as an argument
ALLOC_LOCAL_ARRAY( derivatives, REAL2, nv );
ALLOC_LOCAL_ARRAY( index, unsigned char, nv );
ALLOC_LOCAL_ARRAY( rindex, unsigned char, nv );
......
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