summaryrefslogtreecommitdiff
path: root/chapter30/src/test/java/com/seaofnodes/simple/Chapter16Test.java
diff options
context:
space:
mode:
Diffstat (limited to 'chapter30/src/test/java/com/seaofnodes/simple/Chapter16Test.java')
-rw-r--r--chapter30/src/test/java/com/seaofnodes/simple/Chapter16Test.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/chapter30/src/test/java/com/seaofnodes/simple/Chapter16Test.java b/chapter30/src/test/java/com/seaofnodes/simple/Chapter16Test.java
index 2942cfee..09bd9793 100644
--- a/chapter30/src/test/java/com/seaofnodes/simple/Chapter16Test.java
+++ b/chapter30/src/test/java/com/seaofnodes/simple/Chapter16Test.java
@@ -77,7 +77,7 @@ return z.x;
struct _LLI { !_LLI? !next; int i; new _LLI = { !_LLI? !n, int ii -> next=n; i=ii; }; };
!_LLI? !head = null;
while( arg ) {
- head = new _LLI(head,arg);
+ int n=arg; head = new _LLI(head,n);
arg = arg-1;
}
if( !head ) return 0;
@@ -107,7 +107,7 @@ struct _LLI { !_LLI? !next; int i; new _LLI = { !_LLI? !n, int a ->
}; };
!_LLI? !head = null;
while( arg ) {
- head = new _LLI(head,arg);
+ int n=arg; head = new _LLI(head,n);
arg = arg-1;
}
if( !head ) return 0;