From 60b28ade71bd72cfabc60ad9ac4895a6abb5e54e Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Fri, 29 May 2020 14:12:26 -0700 Subject: [PATCH] ircd::cbor: Use non-reference value for shift integer. (fixes #154) --- ircd/cbor.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ircd/cbor.cc b/ircd/cbor.cc index a78233358..379a1f676 100644 --- a/ircd/cbor.cc +++ b/ircd/cbor.cc @@ -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 };