aboutsummaryrefslogtreecommitdiffstats
path: root/src/zpow.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/zpow.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/zpow.c b/src/zpow.c
index c359ac3..16988f7 100644
--- a/src/zpow.c
+++ b/src/zpow.c
@@ -1,7 +1,5 @@
/* See LICENSE file for copyright and license details. */
-#include "internals"
-
-#include <errno.h>
+#include "internals.h"
#define tb libzahl_tmp_pow_b
#define tc libzahl_tmp_pow_c
@@ -41,7 +39,7 @@ zpow(z_t a, z_t b, z_t c)
for (i = 0; i < n; i++) {
x = tc->chars[i];
- for (j = BITS_PER_CHAR; j--; x >>= 1, j) {
+ for (j = BITS_PER_CHAR; j--; x >>= 1) {
if (x & 1)
zmul(a, a, tb);
zsqr(tb, tb);