mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-02 03:20:06 +00:00
Added a template to allow the HeapBlock class to be given signed ints or other types that are not size_t for its size parameters
This commit is contained in:
parent
13ccdf9411
commit
369d59f656
32 changed files with 189 additions and 199 deletions
|
|
@ -245,10 +245,12 @@ struct Expression::Helpers
|
|||
{
|
||||
checkRecursionDepth (recursionDepth);
|
||||
double result = 0;
|
||||
const int numParams = parameters.size();
|
||||
auto numParams = parameters.size();
|
||||
|
||||
if (numParams > 0)
|
||||
{
|
||||
HeapBlock<double> params ((size_t) numParams);
|
||||
HeapBlock<double> params (numParams);
|
||||
|
||||
for (int i = 0; i < numParams; ++i)
|
||||
params[i] = parameters.getReference(i).term->resolve (scope, recursionDepth + 1)->toDouble();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue