[embedded] Make sure integer does not wrap around for small ratios
All threads resolved!
Compare changes
@@ -33,6 +33,7 @@
@@ -62,28 +63,27 @@ class CylinderIntegration
@@ -200,6 +200,17 @@ private:
Fix compiler warning related to implicit conversion
This makes sure, given some ratio that the resulting number of samples is between 1 and the largest representable std::size_t.
The given ratio is clamped to the interval (0,1] if it's outside that range.
Fixes #942 (closed)