projects
/
IRC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5af5f4f
)
changes
author
bdemsky
<bdemsky>
Mon, 19 Nov 2007 22:26:22 +0000
(22:26 +0000)
committer
bdemsky
<bdemsky>
Mon, 19 Nov 2007 22:26:22 +0000
(22:26 +0000)
Robust/src/Tests/Prefetch/ArrayTest.java
patch
|
blob
|
history
diff --git
a/Robust/src/Tests/Prefetch/ArrayTest.java
b/Robust/src/Tests/Prefetch/ArrayTest.java
index dde8f7b62bb14a947a95fb034384f07460e6ccb0..a743206ce9e9aaed1a5bed3b86e425ab3627dc97 100644
(file)
--- a/
Robust/src/Tests/Prefetch/ArrayTest.java
+++ b/
Robust/src/Tests/Prefetch/ArrayTest.java
@@
-17,7
+17,10
@@
public class ArrayTest {
int sum=0;
for(int i=0;i<array.length;i++) {
ArrayTest a=array[i];
- sum=sum+a.x.i.intValue();
+ int x=a.x.i.intValue();
+ if (x%2==0) {
+ sum=sum+a.x.i.intValue();
+ }
}
return sum;
}