]> sigrok.org Git - pulseview.git/commitdiff
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)
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.


No differences found