From: Mikko Rasa Date: Sun, 2 Jun 2019 11:40:29 +0000 (+0300) Subject: Fix a bug in the prefix version of vector compose function X-Git-Url: http://git.tdb.fi/?p=libs%2Fmath.git;a=commitdiff_plain;h=1d3b7c95cbe111fe0191cea62374fb3630f2e202 Fix a bug in the prefix version of vector compose function --- diff --git a/source/linal/vector.h b/source/linal/vector.h index c9b2a17..767cc88 100644 --- a/source/linal/vector.h +++ b/source/linal/vector.h @@ -174,9 +174,9 @@ template inline Vector compose(T s, const Vector &v) { Vector r; + r[0] = s; for(unsigned i=0; i