diff options
Diffstat (limited to 'fourier.c')
-rw-r--r-- | fourier.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,6 +1,7 @@ #include <stdio.h> #include <stdlib.h> #include <stdint.h> +#include <stdbool.h> #include <string.h> #include <math.h> #include <limits.h> @@ -44,11 +45,11 @@ DoFourier(void) double* bbase = NULL; clock_t total_time = 0; int iterations = 0; - static int is_adjusted = FALSE; + static bool is_adjusted = false; static int array_size = 100; - if (is_adjusted == FALSE) { - is_adjusted = TRUE; + if (is_adjusted == false) { + is_adjusted = true; while (1) { abase = realloc(abase, array_size * sizeof(double)); |