Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Hopefully squashed an ugly x86 bug
  • Loading branch information
Caleb James DeLisle committed May 29, 2012
1 parent 9f6f873 commit 672290a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion switch/LabelSplicer.h
Expand Up @@ -91,7 +91,7 @@ static inline bool LabelSplicer_routesThrough(uint64_t destination, uint64_t mid
if (midPath > destination) {
return false;
}
uint64_t mask = (1 << Bits_log2x64(midPath)) - 1;
uint64_t mask = UINT64_MAX >> (64 - Bits_log2x64(midPath));
return (destination & mask) == (midPath & mask);
}

Expand Down

0 comments on commit 672290a

Please sign in to comment.