Changeset 1892


Ignore:
Timestamp:
Jan 27, 2012, 2:28:31 PM (7 years ago)
Author:
ksherdy
Message:

Updated signedness of position variable.

Location:
trunk/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/bitblock_scan.hpp

    r1887 r1892  
    2525
    2626        bitblock_t * strm;
    27         uint32_t pos;
     27        int32_t pos;
    2828        uint32_t blk;
    2929        scanblock_t scan_blk;
     
    5050        }
    5151
    52         IDISA_ALWAYS_INLINE uint32_t scan_to_next() {
     52        IDISA_ALWAYS_INLINE int32_t scan_to_next() {
    5353                while (this->blk < (sizeof(bitblock_t)/sizeof(scanblock_t))){
    5454                        if(has_bit(this->scan_blk)){
     
    8888        }
    8989
    90         IDISA_ALWAYS_INLINE uint32_t scan_to_next() {
     90        IDISA_ALWAYS_INLINE int32_t scan_to_next() {
    9191                while (this->blk > 0){
    9292                        if(has_bit(this->scan_blk)){
  • trunk/lib/bitstream_iterator.hpp

    r1853 r1892  
    9393
    9494private:
    95         int pos;
    96         int blk;
    97         int blk_pos;
     95        int32_t pos;
     96        int32_t blk;
     97        int32_t blk_pos;
    9898        BitBlock * strm;
    9999        scanword_t scan_blk;
    100         int scan_blk_cnt;
     100        uint32_t scan_blk_cnt;
    101101
    102102        // Helpers
Note: See TracChangeset for help on using the changeset viewer.