From 2e779af8ea627b43f7ad7a1e9f611a9c6a877f53 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 22 Apr 2014 18:05:17 +0200 Subject: [PATCH] memcpy_speed: Use unsigned integers, overflows are undefined for signed integers --- testsuite/memcpy_speed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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