projects
/
platform
/
upstream
/
orc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32ccdc6
)
memcpy_speed: Use unsigned integers, overflows are undefined for signed integers
author
Sebastian Dröge
<sebastian@centricular.com>
Tue, 22 Apr 2014 16:05:17 +0000
(18:05 +0200)
committer
Sebastian Dröge
<sebastian@centricular.com>
Tue, 22 Apr 2014 16:05:17 +0000
(18:05 +0200)
testsuite/memcpy_speed.c
patch
|
blob
|
history
diff --git
a/testsuite/memcpy_speed.c
b/testsuite/memcpy_speed.c
index
147cfe2
..
75df851
100644
(file)
--- 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];