mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 15:33:54 +01:00
ircd::cbor: Use non-reference value for shift integer. (fixes #154)
This commit is contained in:
parent
a61a67961a
commit
60b28ade71
1 changed files with 2 additions and 2 deletions
|
@ -170,7 +170,7 @@ uint8_t
|
|||
ircd::cbor::head::major(const uint8_t &a)
|
||||
{
|
||||
// shift for higher 3 bits only
|
||||
static const int &shift(5);
|
||||
static const auto shift(5);
|
||||
return a >> shift;
|
||||
}
|
||||
|
||||
|
@ -179,7 +179,7 @@ uint8_t
|
|||
ircd::cbor::head::minor(const uint8_t &a)
|
||||
{
|
||||
// mask of lower 5 bits only
|
||||
static const uint8_t &mask
|
||||
static const uint8_t mask
|
||||
{
|
||||
uint8_t(0xFF) >> 3
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue