@cr-xu ... I'm not sure if this is a change that we should actually merge. I realised, that in my project, I often end up in unreasonable value ranges (when doing random actions that I shouldn't actually be doing). The issues I fixed only occur in those unreasonable ranges. So, the question is whether we should merge this PR, or say that these are such stupid cases, that we shouldn't clutter up our code with fixes for them. Let me know what you think.
@cr-xu ... I'm not sure if this is a change that we should actually merge. I realised, that in my project, I often end up in unreasonable value ranges (when doing random actions that I shouldn't actually be doing). The issues I fixed only occur in those unreasonable ranges. So, the question is whether we should merge this PR, or say that these are such stupid cases, that we shouldn't clutter up our code with fixes for them. Let me know what you think.