Skip to content

Commit

Permalink
[core] Fix a narrowing conversion error with MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Aug 7, 2024
1 parent e8e623b commit 22d8697
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/libremidi/observer_configuration.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ struct LIBREMIDI_EXPORT port_information
// PipeWire: unused
// WinMM: unused
// WinUWP: unused
client_handle client = -1;
client_handle client = static_cast<client_handle>(-1);

// ALSA Raw: { uint16_t card, device, sub, padding; }
// ALSA Seq: { uint32_t client, uint32_t port; }
Expand All @@ -32,7 +32,7 @@ struct LIBREMIDI_EXPORT port_information
// PipeWire: port.id
// WinMM: unset, identified by port_name
// WinUWP: unused
port_handle port = -1;
port_handle port = static_cast<port_handle>(-1);

std::string manufacturer;
std::string device_name;
Expand Down

0 comments on commit 22d8697

Please sign in to comment.