Skip to content

Commit

Permalink
Merge pull request #479 from WSoptics/develop
Browse files Browse the repository at this point in the history
fix warning about int conversion
  • Loading branch information
AzothAmmo authored Mar 16, 2018
2 parents 13d1d36 + ae57c62 commit 9aa7f39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/cereal/types/bitset.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ namespace cereal
if( bits[i] )
chunk |= mask;

mask >>= 1;
mask = static_cast<std::uint8_t>(mask >> 1);

// output current chunk when mask is empty (8 bits)
if( mask == 0 )
Expand Down Expand Up @@ -163,7 +163,7 @@ namespace cereal
if( chunk & mask )
bits[i] = 1;

mask >>= 1;
mask = static_cast<std::uint8_t>(mask >> 1);
}
break;
}
Expand Down

0 comments on commit 9aa7f39

Please sign in to comment.