From: Sebastian Dröge Date: Tue, 22 Apr 2014 16:05:17 +0000 (+0200) Subject: memcpy_speed: Use unsigned integers, overflows are undefined for signed integers X-Git-Tag: orc-0.4.20~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2e779af8ea627b43f7ad7a1e9f611a9c6a877f53;p=platform%2Fupstream%2Forc.git memcpy_speed: Use unsigned integers, overflows are undefined for signed integers --- 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