summaryrefslogtreecommitdiff
path: root/maths.c
diff options
context:
space:
mode:
Diffstat (limited to 'maths.c')
-rw-r--r--maths.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/maths.c b/maths.c
index 64e1a24..4496a2c 100644
--- a/maths.c
+++ b/maths.c
@@ -238,9 +238,9 @@ int* vec_cpy(int* d, const int* s, int c) {
}
int* vec_ref(int* d, const int* i, const int* n, int c) {
- int r, j;
+ int j;
int dp = 2 * vec_dot(n, i, c);
- for (j = r = 0; j < c; j++) {
+ for (j = 0; j < c; j++) {
d[j] = i[j] - ((dp * n[j]) >> fbits);
}
return d;