From 0c3ad17808e19c7c873ca3f85feca87f5a8b9cca Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 27 Nov 2020 17:57:54 +0100 Subject: Avoid C casts --- src/PortID.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/PortID.hpp') diff --git a/src/PortID.hpp b/src/PortID.hpp index 3dea5af..06d25ec 100644 --- a/src/PortID.hpp +++ b/src/PortID.hpp @@ -95,8 +95,8 @@ operator<<(std::ostream& os, const PortID& id) break; case PortID::Type::alsa_addr: #ifdef HAVE_ALSA - return os << "alsa:" << (int)id.id.alsa_addr.client << ":" - << (int)id.id.alsa_addr.port << ":" + return os << "alsa:" << int(id.id.alsa_addr.client) << ":" + << int(id.id.alsa_addr.port) << ":" << (id.id.is_input ? "in" : "out"); #endif break; -- cgit v1.2.1