From e94fdd576d250652891f3ca5be61e2eb80b152cc Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sat, 3 May 2014 22:35:32 +0200 Subject: tests/check_session.c: Use UINT64_MAX. --- tests/check_session.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(); } -- cgit v1.2.3-70-g09d2