fix bug in matrix wrap function (#83)

This commit is contained in:
Tanja Baumann
2019-09-05 11:21:41 +02:00
committed by Julian Kent
parent 4a4309327a
commit 26fd962cbe
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ bool is_finite(Type x) {
template<typename Type>
Type wrap(Type x, Type low, Type high) {
// already in range
if (low < x && x < high) {
if (low <= x && x < high) {
return x;
}