summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-07-14 09:08:01 +1000
committerquou <quou@disroot.org>2024-07-14 09:08:01 +1000
commit1ae53e77cd45416e42b6edcbe0973556a4021b0c (patch)
treed4d60cb29066194c51157f9aff8683fa04af9128
parent86c4c02743726edd01b9878f3640129815704390 (diff)
Remove unused variable from vec_ref.
-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;