mirror of
https://codeberg.org/OpenTracksApp/OpenTracks.git
synced 2026-10-06 03:23:07 +02:00
Bugfix: cycling sensors report wheel count as UINT32 - data type must be long, int is too small.
Also forgot to fix tests. Fixes #810.
This commit is contained in:
@@ -18,7 +18,7 @@ public class UintUtils {
|
||||
throw new RuntimeException("a or b cannot be less than zero.");
|
||||
}
|
||||
if (a > UINT_MAX || b > UINT_MAX) {
|
||||
throw new RuntimeException("a or b are outside of the allowed range." + a + " " + b);
|
||||
throw new RuntimeException("a or b are outside of the allowed range.");
|
||||
}
|
||||
|
||||
if (a >= b) {
|
||||
|
||||
Reference in New Issue
Block a user