From: Soeren Apel Date: Thu, 5 Nov 2015 18:14:46 +0000 (+0100) Subject: StoreSession: Observe proper range order X-Git-Url: http://git.code-monkey.de/?a=commitdiff_plain;ds=sidebyside;h=3e8a7cc6af5558a249c114b1609ececa2a381774;hp=3e8a7cc6af5558a249c114b1609ececa2a381774;p=pulseview.git StoreSession: Observe proper range order 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. ---