Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 41647
b: refs/heads/master
c: 5f3f24f
h: refs/heads/master
i:
  41645: 0661109
  41643: c8e7919
  41639: eff85fc
  41631: e9cf397
v: v3
  • Loading branch information
Alexey Dobriyan authored and David S. Miller committed Dec 3, 2006
1 parent 773ef9c commit cf1e89f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2ee92d46c6cabedd50edf6f273fa8cf84f707618
refs/heads/master: 5f3f24faf322e54752d1df00cdb768a013de5d1f
2 changes: 1 addition & 1 deletion trunk/drivers/atm/ambassador.c
Original file line number Diff line number Diff line change
Expand Up @@ -972,7 +972,7 @@ static int make_rate (unsigned int rate, rounding r,
}
case round_up: {
// check all bits that we are discarding
if (man & (-1>>9)) {
if (man & (~0U>>9)) {
man = (man>>(32-9)) + 1;
if (man == (1<<9)) {
// no need to check for round up outside of range
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/atm/firestream.c
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ static unsigned int make_rate (unsigned int rate, int r,
}
case ROUND_UP: {
/* check all bits that we are discarding */
if (man & (-1>>9)) {
if (man & (~0U>>9)) {
man = (man>>(32-9)) + 1;
if (man == (1<<9)) {
/* no need to check for round up outside of range */
Expand Down

0 comments on commit cf1e89f

Please sign in to comment.