Skip to content

Commit

Permalink
fix signed/unsigned mismatch warning with older MSVC compilers
Browse files Browse the repository at this point in the history
  • Loading branch information
fdetro committed Apr 22, 2024
1 parent dec987d commit a9f6714
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# v1.8.1

* fix signed/unsigned mismatch warning with older MSVC compilers

# v1.8.0

* fix MIDI CI profile messages, some implementations were not yet compatible with MIDI CI 1.2
Expand Down
2 changes: 1 addition & 1 deletion inc/midi/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ constexpr pitch_increment::pitch_increment(double d)
else if (d >= 0.)
{
const auto result = pitch_7_25(d).value;
if (result <= std::numeric_limits<int32_t>::max())
if (result <= uint32_t(std::numeric_limits<int32_t>::max()))
value = result;
else
value = std::numeric_limits<int32_t>::max();
Expand Down

0 comments on commit a9f6714

Please sign in to comment.