]> sigrok.org Git - pulseview.git/commit
Fix #1125 by adding a missing typecast
authorSoeren Apel <redacted>
Thu, 8 Mar 2018 23:28:42 +0000 (00:28 +0100)
committerSoeren Apel <redacted>
Mon, 12 Mar 2018 14:58:14 +0000 (15:58 +0100)
commit20df1a39d587c284f5ee8873dc05470d6a6b11eb
tree5c3edaa0a9db3eeb53f9ce84cf699c6e19f5003a
parent784f6c75bf8d878b395b8eb7b5e92fa24d9b32ba
Fix #1125 by adding a missing typecast

Without this typecast, the return type of get_sample_count() is
a uint64_t, which doesn't go well when it's 0 and we subtract 1
from it. Assigning the result of this underflow to an int64_t
doesn't help, it's too late.
pv/views/trace/analogsignal.cpp
pv/views/trace/logicsignal.cpp