~ubuntu-branches/ubuntu/trusty/bmagic/trusty

« back to all changes in this revision

Viewing changes to src/encoding.h

  • Committer: Bazaar Package Importer
  • Author(s): Roberto C. Sanchez
  • Date: 2011-03-03 12:22:16 UTC
  • mfrom: (4.1.8 sid)
  • Revision ID: james.westby@ubuntu.com-20110303122216-qll5migewxnxe3s5
Tags: 3.7.0-1
* New upstream release (Closes: #615929)
* Update to Standards-Version 3.9.1 (no changes)
* Specify Debian source format as '3.0 (quilt)'

Show diffs side-by-side

added added

removed removed

Lines of Context:
273
273
        // Put the value bits
274
274
        //
275
275
        {
276
 
            unsigned mask = (~0);
 
276
            unsigned mask = (~0u);
277
277
            mask >>= acc_bits - logv;
278
278
            value &= mask;
279
279
        }
351
351
            used ^= used;
352
352
        }
353
353
        unsigned zero_bits = 0;
354
 
        while (1)
 
354
        while (true)
355
355
        {
356
356
            if (acc == 0)
357
357
            {
486
486
    */
487
487
    T operator()(void)
488
488
    {
489
 
        return bin_.gamma();
 
489
        return (T)bin_.gamma();
490
490
    }
491
491
private:
492
492
    gamma_decoder(const gamma_decoder&);