diff options
Diffstat (limited to 'bits.c')
| -rw-r--r-- | bits.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -143,7 +143,7 @@ unsigned reverse(unsigned v) { * Difficulty: 3 */ int logicalShift(int x, int n) { - return 2; + return (x >> n) & ~(((1 << 31) >> n) << 1); } /* |
