cast added

This commit is contained in:
Robin Müller 2020-12-14 21:20:21 +01:00
parent f604d621e8
commit d2f631a955

View File

@ -24,7 +24,7 @@ public:
*/
static constexpr ReturnValue_t makeReturnCode(uint8_t interfaceId,
uint8_t number) {
return (interfaceId << 8) + number;
return (static_cast<ReturnValue_t>(interfaceId) << 8) + number;
}
};