diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2014-04-22 18:05:17 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2014-04-22 18:05:17 +0200 |
commit | 2e779af8ea627b43f7ad7a1e9f611a9c6a877f53 (patch) | |
tree | 8d1656fa8c25bace2803abd30eb751daca92f3d9 /testsuite | |
parent | 32ccdc6997e09cdf27a20800b64b3fc03e2bddb8 (diff) |
memcpy_speed: Use unsigned integers, overflows are undefined for signed integers
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/memcpy_speed.c | 2 |
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]; |