1
0
Fork 0
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:
ed 2017-10-27 11:10:30 +01:00
parent cc5b2238ae
commit c1f564de98
2 changed files with 2 additions and 2 deletions

View file

@ -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
{

View file

@ -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]));
}