src/fvec.c: fix variable name
authorPaul Brossier <piem@piem.org>
Sun, 6 Sep 2015 08:36:09 +0000 (10:36 +0200)
committerPaul Brossier <piem@piem.org>
Sun, 6 Sep 2015 08:36:09 +0000 (10:36 +0200)
src/fvec.c

index 601cfe2..1b0f750 100644 (file)
@@ -110,7 +110,7 @@ void fvec_weight(fvec_t *s, fvec_t *weight) {
 void fvec_weighted_copy(fvec_t *in, fvec_t *weight, fvec_t *out) {
 #ifndef HAVE_ACCELERATE
   uint_t j;
-  uint_t length = MIN(s->length, weight->length);
+  uint_t length = MIN(out->length, weight->length);
   for (j=0; j< length; j++) {
     out->data[j] = in->data[j] * weight->data[j];
   }