1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-21 02:17:08 +00:00

Be specific about types.

This commit is contained in:
Thomas Harte
2025-04-21 23:03:57 -04:00
parent d7d2957319
commit 7de23ec2aa
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -369,7 +369,7 @@ public:
template <typename IntT> IntT in(const uint16_t port) {
if constexpr (std::is_same_v<IntT, uint16_t>) {
return in<uint8_t>(port) | (in<uint8_t>(port + 1) << 8);
return uint16_t(in<uint8_t>(port) | (in<uint8_t>(port + 1) << 8));
} else {
static_assert(std::is_same_v<IntT, uint8_t>);