Skip to content

Commit a9f6714

Browse files
committed
fix signed/unsigned mismatch warning with older MSVC compilers
1 parent dec987d commit a9f6714

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# v1.8.1
2+
3+
* fix signed/unsigned mismatch warning with older MSVC compilers
4+
15
# v1.8.0
26

37
* fix MIDI CI profile messages, some implementations were not yet compatible with MIDI CI 1.2

inc/midi/types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ constexpr pitch_increment::pitch_increment(double d)
613613
else if (d >= 0.)
614614
{
615615
const auto result = pitch_7_25(d).value;
616-
if (result <= std::numeric_limits<int32_t>::max())
616+
if (result <= uint32_t(std::numeric_limits<int32_t>::max()))
617617
value = result;
618618
else
619619
value = std::numeric_limits<int32_t>::max();

0 commit comments

Comments
 (0)