cast added

This commit is contained in:
Robin Müller 2020-11-02 14:45:10 +01:00
parent a0d4c77d94
commit 963c333365

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;
}
};