mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Fixed a build error and warning on 10.6
This commit is contained in:
parent
cc5b2238ae
commit
c1f564de98
2 changed files with 2 additions and 2 deletions
|
|
@ -27,7 +27,7 @@
|
|||
#include "../JuceDemoHeader.h"
|
||||
|
||||
// these classes are C++11-only
|
||||
#if JUCE_HAS_CONSTEXPR
|
||||
#if JUCE_HAS_CONSTEXPR && JUCE_COMPILER_SUPPORTS_INITIALIZER_LISTS
|
||||
|
||||
struct GridDemo : public Component
|
||||
{
|
||||
|
|
|
|||
|
|
@ -154,7 +154,7 @@ namespace std
|
|||
FunctorHolderBase<Result, Arguments...>* getFunctorStorage (int size)
|
||||
{
|
||||
return reinterpret_cast<FunctorHolderBase<Result, Arguments...>*>
|
||||
(size > functorHolderStackSize ? new char [size]
|
||||
(size > functorHolderStackSize ? new char [static_cast<unsigned long> (size)]
|
||||
: &(stackFunctorStorage[0]));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue