StoreSession: Observe proper range order
authorSoeren Apel <soeren@apelpie.net>
Thu, 5 Nov 2015 18:14:46 +0000 (19:14 +0100)
committerUwe Hermann <uwe@hermann-uwe.de>
Thu, 5 Nov 2015 20:36:19 +0000 (21:36 +0100)
When I wrote the original solution I wanted min() and abs()
to take care of this issue. However, I forgot that abs()
works on a difference of two uint64_t, so this subtraction
will underflow if the range is in the wrong order.
Converting them to int64_t isn't a good solution, so I'm now
using an ordinary condition instead.


No differences found