summaryrefslogtreecommitdiffhomepage
path: root/opentrack/simple-mat.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-07-19 16:50:41 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-07-19 16:50:41 +0200
commit4da0c0619cbf052eb87a618aba4c8de79f0d4325 (patch)
treee075b2a2601d6d2f26a8a70fb83cb682cdfb23df /opentrack/simple-mat.hpp
parentf9b5b72cbcf9f121e0184f9a907bbffd7e1e16a9 (diff)
parenta8165591d993a23ae71ea4e5bb7df7596688ef7b (diff)
Merge branch 'unstable' into trackhat-ui
Diffstat (limited to 'opentrack/simple-mat.hpp')
-rw-r--r--opentrack/simple-mat.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/opentrack/simple-mat.hpp b/opentrack/simple-mat.hpp
index e111305a..7432e665 100644
--- a/opentrack/simple-mat.hpp
+++ b/opentrack/simple-mat.hpp
@@ -107,7 +107,7 @@ struct Mat
{
Mat<num, h_, w_> ret;
for (int j = 0; j < h_; j++)
- for (int i = 0; i < w; i++)
+ for (int i = 0; i < w_; i++)
ret(j, i) = this->operator ()(j, i) + other(j, i);
return ret;
}
@@ -125,7 +125,7 @@ struct Mat
{
Mat<num, h_, w_> ret;
for (int j = 0; j < h_; j++)
- for (int i = 0; i < w; i++)
+ for (int i = 0; i < w_; i++)
ret(j, i) = this->operator ()(j, i) + other;
return ret;
}