summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2014-04-22 18:05:17 +0200
committerSebastian Dröge <sebastian@centricular.com>2014-04-22 18:05:17 +0200
commit2e779af8ea627b43f7ad7a1e9f611a9c6a877f53 (patch)
tree8d1656fa8c25bace2803abd30eb751daca92f3d9 /testsuite
parent32ccdc6997e09cdf27a20800b64b3fc03e2bddb8 (diff)
memcpy_speed: Use unsigned integers, overflows are undefined for signed integers
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/memcpy_speed.c2
1 files changed, 1 insertions, 1 deletions
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<n;i++){
sum += ptr[i];