summaryrefslogtreecommitdiffstats
path: root/2
diff options
context:
space:
mode:
authorSadeep Madurange <smadurange@users.noreply.github.com>2021-11-29 22:17:45 +0800
committerSadeep Madurange <smadurange@users.noreply.github.com>2021-11-29 22:17:45 +0800
commitddf64d68df02f7ea551e89c1aa106b54cb88849b (patch)
tree587e986be6c09487140e65eefdba7d2731a8bd2a /2
parentd185cab856f8fa71e8ea28cbc38c996f6487f1e2 (diff)
downloadk&r-exercises-ddf64d68df02f7ea551e89c1aa106b54cb88849b.tar.gz
2.6
Diffstat (limited to '2')
-rw-r--r--2/6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/2/6.c b/2/6.c
index 7942588..6100cf7 100644
--- a/2/6.c
+++ b/2/6.c
@@ -28,7 +28,7 @@ unsigned setbits(unsigned x, int p, int n, unsigned y) {
// create mask for x
xUnset = (~0 << p) | ~(~0 << (p - n));
- // mask out n bits in x from p:
+ // mask out n bits in x from pth position:
xPrime = x & xUnset;
return xPrime | yLOA;