cast added
This commit is contained in:
parent
f604d621e8
commit
d2f631a955
@ -24,7 +24,7 @@ public:
|
|||||||
*/
|
*/
|
||||||
static constexpr ReturnValue_t makeReturnCode(uint8_t interfaceId,
|
static constexpr ReturnValue_t makeReturnCode(uint8_t interfaceId,
|
||||||
uint8_t number) {
|
uint8_t number) {
|
||||||
return (interfaceId << 8) + number;
|
return (static_cast<ReturnValue_t>(interfaceId) << 8) + number;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user