Skip to content

Commit 048e5e7

Browse files
committed
macOS
1 parent ea0e0c2 commit 048e5e7

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
lines changed

modules/squarepine_animation/controllers/squarepine_Timeline.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,6 @@ class TimelinePoint final : public Identifiable
6868
class Timeline final : public Identifiable
6969
{
7070
public:
71-
/** */
72-
Timeline() = default;
73-
7471
/** */
7572
Timeline (const Identifier& id) noexcept :
7673
Identifiable (id)

modules/squarepine_animation/particles/squarepine_ParticleSystem.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,12 +263,13 @@ class ParticleEmitter final
263263
public:
264264
/** Constructor.
265265
266+
@param gravityInPxPerUpdate
266267
@param shouldRemoveParticlesOnEnd
267268
*/
268269
ParticleEmitter (float gravityInPxPerUpdate = 1.0f,
269270
bool shouldRemoveParticlesOnEnd = false) :
270-
gravityPxPerUpdate (gravityInPxPerUpdate),
271-
shouldRemoveOnEnd (shouldRemoveParticlesOnEnd)
271+
shouldRemoveOnEnd (shouldRemoveParticlesOnEnd),
272+
gravityPxPerUpdate (gravityInPxPerUpdate)
272273
{
273274
jassert (std::isnormal (gravityPxPerUpdate));
274275
}
@@ -537,4 +538,5 @@ class ParticleSystemComponent : public Component,
537538
}
538539

539540
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ParticleSystemComponent)
540-
};
541+
};
542+

modules/squarepine_audio/effects/BitCrusherProcessor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ inline FloatType crushSample (FloatType sample, int targetBits)
1212
const auto x = std::pow (two, static_cast<FloatType> (targetBits) / dig);
1313
const auto quant = x / two;
1414
const auto dequant = static_cast<FloatType> (1) / quant;
15-
return static_cast<FloatType> (dequant * (int)(sample * quant));
15+
return dequant * static_cast<FloatType> (sample * quant);
1616
}
1717

1818
/** Use this processor to dynamically crush the audio's bits. */

modules/squarepine_cryptography/rng/squarepine_BlumBlumShub.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@ namespace bbs
33
constexpr std::optional<int> getMSB (const BlumBlumShub::BigM& set)
44
{
55
for (int i = (int) set.size(); --i >= 0;)
6-
if (set.test (i))
6+
if (set.test ((size_t) i))
77
return { i };
88

99
return std::nullopt;
1010
}
1111

12-
BlumBlumShub::BigM toBitset (uint64 value) noexcept
12+
inline BlumBlumShub::BigM toBitset (uint64 value) noexcept
1313
{
1414
return BlumBlumShub::BigM (static_cast<unsigned long long> (value));
1515
}
1616

17-
uint64 fromBitset (const BlumBlumShub::BigM& biggy) noexcept
17+
inline uint64 fromBitset (const BlumBlumShub::BigM& biggy) noexcept
1818
{
1919
return static_cast<uint64> (biggy.to_ullong());
2020
}
@@ -39,7 +39,7 @@ namespace bbs
3939
return gcd (a, b) == 1;
4040
}
4141

42-
uint64 createProbablePrime()
42+
inline uint64 createProbablePrime()
4343
{
4444
const auto biggy = Primes::createProbablePrime (32, 30);
4545
const auto hsb = biggy.getHighestBit();

0 commit comments

Comments
 (0)