summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.c b/main.c
index 1eef5eb..b889ec2 100644
--- a/main.c
+++ b/main.c
@@ -89,7 +89,8 @@ encrypt(char *buf, size_t buf_size)
/* Ensure we don't cause any overflows */
while (((current_pos + step) >= buf_size) && step > 1)
- step /= 2;
+ /* Essentially divide the step by 2, just faster */
+ step >>= 1;
}
}