From: Uwe Hermann Date: Sat, 3 May 2014 20:35:32 +0000 (+0200) Subject: tests/check_session.c: Use UINT64_MAX. X-Git-Tag: libsigrokdecode-0.3.0~23 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=e94fdd576d250652891f3ca5be61e2eb80b152cc;p=libsigrokdecode.git tests/check_session.c: Use UINT64_MAX. --- diff --git a/tests/check_session.c b/tests/check_session.c index 8a34f32..f411854 100644 --- a/tests/check_session.c +++ b/tests/check_session.c @@ -20,6 +20,7 @@ #include "../libsigrokdecode.h" /* First, to avoid compiler warning. */ #include "../libsigrokdecode-internal.h" +#include #include #include #include "lib.h" @@ -193,11 +194,10 @@ START_TEST(test_session_metadata_set) srd_init(NULL); srd_session_new(&sess); /* Try a bunch of values. */ - for (i = 0; i < 1000; i++) { + for (i = 0; i < 1000; i++) conf_check_ok(sess, SRD_CONF_SAMPLERATE, i); - } /* Try the max. possible value. */ - conf_check_ok(sess, SRD_CONF_SAMPLERATE, 18446744073709551615ULL); + conf_check_ok(sess, SRD_CONF_SAMPLERATE, UINT64_MAX); srd_session_destroy(sess); srd_exit(); }