Skip to content

Commit

Permalink
Update MSB.h
Browse files Browse the repository at this point in the history
Ugly bug corrected. Trying to assign a reference to constant ...
  • Loading branch information
AAAlvesJr authored Jul 13, 2020
1 parent 7913d2b commit 5b10e05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hydra/detail/utility/MSB.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ inline typename std::enable_if<
!(std::is_signed<Integer>::value) &&
(std::numeric_limits<Integer>::digits==64)
, unsigned>::type
msb( Integer const& x){
msb( Integer x){

if(!x) return 64;

Expand Down Expand Up @@ -105,7 +105,7 @@ inline typename std::enable_if<
!(std::is_signed<Integer>::value) &&
(std::numeric_limits<Integer>::digits<=32)
, unsigned>::type
msb( Integer const& x){
msb( Integer x){

if(!x) return 32;

Expand Down

0 comments on commit 5b10e05

Please sign in to comment.