diff mbox

[2/3] test/: Fix sparse constant is too long

Message ID 1403733620-8426-2-git-send-email-mike.holmes@linaro.org
State Accepted
Commit b8ccea8199082b246bc4a4620a1b078d7fd58b40
Headers show

Commit Message

Mike Holmes June 25, 2014, 10 p.m. UTC
Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
---
 test/api_test/odp_timer_ping.c | 2 +-
 test/timer/odp_timer_test.c    | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
diff mbox

Patch

diff --git a/test/api_test/odp_timer_ping.c b/test/api_test/odp_timer_ping.c
index 7f2d1c4..7cfb9fa 100644
--- a/test/api_test/odp_timer_ping.c
+++ b/test/api_test/odp_timer_ping.c
@@ -303,7 +303,7 @@  int main(int argc ODP_UNUSED, char *argv[] ODP_UNUSED)
 	}
 
 	test_timer_ping = odp_timer_create("ping_timer", pool,
-					   1000000, 1000000, 1000000000000);
+					   1000000, 1000000, 1000000000000UL);
 	odp_shm_print_all();
 
 	pingarg.thrdarg.testcase = ODP_TIMER_PING_TEST;
diff --git a/test/timer/odp_timer_test.c b/test/timer/odp_timer_test.c
index 341265d..bbec016 100644
--- a/test/timer/odp_timer_test.c
+++ b/test/timer/odp_timer_test.c
@@ -294,7 +294,7 @@  int main(int argc, char *argv[])
 	}
 
 	test_timer = odp_timer_create("test_timer", pool,
-				      1000000, 1000000, 1000000000000);
+				      1000000, 1000000, 1000000000000UL);
 
 
 	odp_shm_print_all();
@@ -308,7 +308,7 @@  int main(int argc, char *argv[])
 	printf("  %12"PRIu64" cycles  ->  %12"PRIu64" ns\n", cycles,
 	       odp_time_cycles_to_ns(cycles));
 
-	for (ns = 1; ns <= 100000000000; ns *= 10) {
+	for (ns = 1; ns <= 100000000000UL; ns *= 10) {
 		cycles = odp_time_ns_to_cycles(ns);
 
 		printf("  %12"PRIu64" ns      ->  %12"PRIu64" cycles\n", ns,