From: Uwe Hermann Date: Tue, 20 Feb 2018 19:02:30 +0000 (+0100) Subject: beaglelogic: Use UINT64_MAX instead of (uint64_t)-1. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=5a64d1d954f6ab1e3ccb8aa8a0f71d1d0c8c91b1;p=libsigrok.git beaglelogic: Use UINT64_MAX instead of (uint64_t)-1. --- diff --git a/src/hardware/beaglelogic/api.c b/src/hardware/beaglelogic/api.c index 92a6e496..0be82c13 100644 --- a/src/hardware/beaglelogic/api.c +++ b/src/hardware/beaglelogic/api.c @@ -330,7 +330,7 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi) /* If continuous sampling, set the limit_samples to max possible value */ if (devc->triggerflags == BL_TRIGGERFLAGS_CONTINUOUS) - devc->limit_samples = (uint64_t)-1; + devc->limit_samples = UINT64_MAX; /* Configure triggers & send header packet */ if ((trigger = sr_session_trigger_get(sdi->session))) {