Skip to content

Commit

Permalink
bit_range_ops: reverted slightly too zealous modification
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfgang Sourdeau committed Oct 3, 2014
1 parent 2cab544 commit 6f5d1df
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions arch/bit_range_ops.h
Original file line number Diff line number Diff line change
Expand Up @@ -354,9 +354,9 @@ struct Bit_Buffer {
}

/// Extracts bits starting from the least-significant bits of the buffer.
Data extract(shift_t bits)
Data extract(int bits)
{
if (JML_UNLIKELY(bits == 0)) return Data(0);
if (JML_UNLIKELY(bits <= 0)) return Data(0);

Data result;
if (bit_ofs + bits <= 8 * sizeof(Data))
Expand Down Expand Up @@ -406,7 +406,7 @@ struct Bit_Buffer {
return result;
}

void advance(shift_t bits)
void advance(int bits)
{
bit_ofs += bits;
data += (bit_ofs / (sizeof(Data) * 8));
Expand Down Expand Up @@ -525,7 +525,7 @@ struct Bit_Extractor {
}

JML_COMPUTE_METHOD
void advance(shift_t bits)
void advance(int bits)
{
buf.advance(bits);
}
Expand Down

0 comments on commit 6f5d1df

Please sign in to comment.