~posulliv/drizzle/code-cleanup-c++-use-bitset

« back to all changes in this revision

Viewing changes to drizzled/message/binlog_encoding.h

  • Committer: Padraig O'Sullivan
  • Date: 2009-08-08 18:25:59 UTC
  • mfrom: (1100.1.12 staging)
  • Revision ID: osullivan.padraig@gmail.com-20090808182559-60uwfuzzucpq22yv
MergeĀ fromĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
    uint_fast8_t pow2= 1;          // pow2(log2m1 + 1)
40
40
    while (length > 0) {
41
41
      // Check the invariants
42
 
      assert(pow2 == (1 << (log2m1 + 1)));
 
42
      assert(((int_fast8_t)pow2) == (1 << (log2m1 + 1)));
43
43
      assert((ptr - buf) <= (1 << (log2m1 + 1)));
44
44
 
45
45
      // Write the least significant byte of the current