diff options
author | Matt Turner <mattst88@gmail.com> | 2008-11-14 23:03:36 +0000 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2008-11-14 23:03:36 +0000 |
commit | 34edabbf495e0222c59937973ab2bfecc8e32dd6 (patch) | |
tree | cb3f1660f1fdac73e1f7281d25cb35b68a7db1aa /linear.c | |
parent | 7225b0865e8c7697fce69224640142374b22364d (diff) |
Remove adjust struct member in favor of a local static variable
git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@44 0d43b9a7-5ab2-4d7b-af9d-f64450cef757
Diffstat (limited to 'linear.c')
-rw-r--r-- | linear.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -78,8 +78,8 @@ DoLU(void) LUdblptr ptra; int n; int i; - int num_arrays; + static int is_adjusted = FALSE; /* ** Our first step is to build a "solvable" problem. This @@ -109,8 +109,8 @@ DoLU(void) ** auto-adjust. If so, repeatedly call the DoLUIteration routine, ** increasing the number of solutions per iteration as you go. */ - if (loclustruct->adjust == FALSE) { - loclustruct->adjust = TRUE; + if (is_adjusted == FALSE) { + is_adjusted = TRUE; num_arrays=0; for(i=1;i<=MAXLUARRAYS;i++) |