From 2e779af8ea627b43f7ad7a1e9f611a9c6a877f53 Mon Sep 17 00:00:00 2001 From: Sebastian Dröge Date: Tue, 22 Apr 2014 18:05:17 +0200 Subject: memcpy_speed: Use unsigned integers, overflows are undefined for signed integers --- testsuite/memcpy_speed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testsuite') diff --git a/testsuite/memcpy_speed.c b/testsuite/memcpy_speed.c index 147cfe2..75df851 100644 --- a/testsuite/memcpy_speed.c +++ b/testsuite/memcpy_speed.c @@ -20,7 +20,7 @@ int flush_cache = FALSE; void touch (unsigned char *ptr, int n) { - static int sum; + static unsigned int sum; int i; for(i=0;i