Skip to content

Commit 8cd1aa1

Browse files
committed
Fixed casing on float literals.
1 parent f472e16 commit 8cd1aa1

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

include/RhythmGameUtilities/Audio.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ extern "C"
3535
{
3636
waveform[x] = new int[height];
3737

38-
auto min = 1.0f;
39-
auto max = -1.0f;
38+
auto min = 1.0F;
39+
auto max = -1.0F;
4040

4141
for (auto j = 0; j < step; j += 1)
4242
{

include/RhythmGameUtilities/Common.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ extern "C"
4040

4141
PACKAGE_API float InverseLerp(float a, float b, float v)
4242
{
43-
return std::clamp(((v - a) / (b - a)), 0.0f, 1.0f);
43+
return std::clamp(((v - a) / (b - a)), 0.0F, 1.0F);
4444
}
4545
}
4646

include/RhythmGameUtilities/Utilities.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
namespace RhythmGameUtilities
1717
{
1818

19-
const float SECONDS_PER_MINUTE = 60.0f;
19+
const float SECONDS_PER_MINUTE = 60.0F;
2020

2121
/**
2222
* Convert seconds to ticks.
@@ -205,7 +205,7 @@ inline float ConvertTickToPosition(int tick, int resolution)
205205
* @public
206206
*/
207207

208-
inline bool IsOnTheBeat(int bpm, float currentTime, float delta = 0.05f)
208+
inline bool IsOnTheBeat(int bpm, float currentTime, float delta = 0.05F)
209209
{
210210
auto beatInterval = SECONDS_PER_MINUTE / static_cast<float>(bpm);
211211

include/RhythmGameUtilities/UtilitiesInternal.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ extern "C"
7272
}
7373

7474
PACKAGE_API bool IsOnTheBeatInternal(int bpm, float currentTime,
75-
float delta = 0.05f)
75+
float delta = 0.05F)
7676
{
7777
return IsOnTheBeat(bpm, currentTime, delta);
7878
}

0 commit comments

Comments
 (0)