Changeset 2203

Show
Ignore:
Timestamp:
03/20/07 06:40:26 (2 years ago)
Author:
proski
Message:

Partly revert r2159

srate should be signed. Otherwise, some checks for it make no sense.
Just because it's declared unsigned doesn't mean that the loop will stop
once srate reached 0. It would wrap to 0xffffffff and bad things would
happen.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ath_rate/sample/sample.c

    r2161 r2203  
    777777        const HAL_RATE_TABLE *rt = sc->sc_currates; 
    778778        unsigned int x, y; 
    779         unsigned int srate; 
     779        int srate; 
    780780        sn->num_rates = 0; 
    781781