Errors and issues with using values above `INT_MAX`
Opened this issue · 1 comments
Upon inputting a calorie value above INT_MAX
(i.e. 2147483648), it records an incorrect value. This also results in a negative value displaying in calorie consumption of the day when it should not.
Fitz allows me to successfully record exercises that have reps over INT_MAX
, however upon trying to view the workout using /wcount, it shows the reps as 0 for that particular workout. Furthermore there seems to be an error message of Invalid reps format:2147483647 2147483648
for the reps that have values over INT_MAX
.
I think it would be better if there is a limit on the number of reps/calories that can be recorded upon adding the exercise in /wadd and /cadd, and the limit should be mentioned in the UG.
Your response not required for this bug as the team has accepted the bug as it is.