From: Soeren Apel Date: Thu, 8 Mar 2018 23:28:42 +0000 (+0100) Subject: Fix #1125 by adding a missing typecast X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=commitdiff_plain;h=20df1a39d587c284f5ee8873dc05470d6a6b11eb;hp=20df1a39d587c284f5ee8873dc05470d6a6b11eb 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. ---