From: <luc...@us...> - 2020-05-08 19:02:07
|
Revision: 26314 http://sourceforge.net/p/sbml/code/26314 Author: luciansmith Date: 2020-05-08 19:02:05 +0000 (Fri, 08 May 2020) Log Message: ----------- Fix from Taraz Buck, to enable compilation on their machine. Modified Paths: -------------- branches/libsbml-experimental/src/sbml/packages/spatial/common/CompressionUtil.h Modified: branches/libsbml-experimental/src/sbml/packages/spatial/common/CompressionUtil.h =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/common/CompressionUtil.h 2020-05-06 15:41:53 UTC (rev 26313) +++ branches/libsbml-experimental/src/sbml/packages/spatial/common/CompressionUtil.h 2020-05-08 19:02:05 UTC (rev 26314) @@ -41,6 +41,7 @@ #include <vector> #include <iostream> +#include <cstdlib> //for malloc LIBSBML_CPP_NAMESPACE_BEGIN @@ -88,7 +89,7 @@ if (length > 0) { - type* data = (type*)malloc(sizeof(type) * length); + type* data = (type*)std::malloc(sizeof(type) * length); for (size_t i = 0; i < length; ++i) { data[i] = valuesVector.at(i); |