From 0a0699aba70c04e3e6c5847b47cee75025e96255 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Sat, 15 Nov 2008 05:23:15 +0000 Subject: Use stdbool.h, bool, true, false instead of manually defining git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@60 0d43b9a7-5ab2-4d7b-af9d-f64450cef757 --- linear.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'linear.c') diff --git a/linear.c b/linear.c index fe19af8..32d5af6 100644 --- a/linear.c +++ b/linear.c @@ -1,6 +1,7 @@ #include #include #include +#include #include #include #include @@ -77,7 +78,7 @@ DoLU(void) int n; int i; static int num_arrays = 0; - static int is_adjusted = FALSE; + static bool is_adjusted = false; /* ** Our first step is to build a "solvable" problem. This @@ -107,8 +108,8 @@ DoLU(void) ** auto-adjust. If so, repeatedly call the DoLUIteration routine, ** increasing the number of solutions per iteration as you go. */ - if (is_adjusted == FALSE) { - is_adjusted = TRUE; + if (is_adjusted == false) { + is_adjusted = true; for(i=1;i<=ARRAY_MAX;i++) { -- cgit v1.2.3