summaryrefslogtreecommitdiffstats
path: root/src/common/math_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/math_util.h')
-rw-r--r--src/common/math_util.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/common/math_util.h b/src/common/math_util.h
index 570ec8e56..9e630d93d 100644
--- a/src/common/math_util.h
+++ b/src/common/math_util.h
@@ -45,10 +45,8 @@ struct Rectangle {
return Rectangle{left, top + y, right, bottom + y};
}
Rectangle<T> Scale(const float s) const {
- ASSERT(s > 0);
- return Rectangle {
- left, top, static_cast<T>((right + left) * s), static_cast<T>((top + bottom) * s)
- };
+ return Rectangle{left, top, static_cast<T>((right + left) * s),
+ static_cast<T>((top + bottom) * s)};
}
};