]> sigrok.org Git - pulseview.git/commit
Fix #595 by correctly handling UINT64_MAX and INT_MAX boundaries
authorSoeren Apel <redacted>
Mon, 24 Aug 2015 16:21:15 +0000 (18:21 +0200)
committerUwe Hermann <redacted>
Tue, 25 Aug 2015 16:11:16 +0000 (18:11 +0200)
commit765e7d335ab693f587d47b4242e6d72b679d683d
tree7e26c31d574c1793337f29466ef5f65b6b8ac894
parent73e170f93ce9deb7bba04966564dcd8af8dfe7e1
Fix #595 by correctly handling UINT64_MAX and INT_MAX boundaries

By using an int64_t to hold UINT64_MAX, it was made to overflow
to -1. This lead to range_min=0 and range_max=-1, resulting in
a disabled spin button.
pv/prop/int.cpp