Changed a lot of ints to bools.
[pspp-builds.git] / src / language / tests / moments-test.c
index c3412e0419cb2c4d564183ae2f41e55ad304c497..05f0981bbe8354b017a9e4e22c66f0e33d4d8edd 100644 (file)
 #include <language/command.h>
 #include <language/lexer/lexer.h>
 #include <math/moments.h>
-#include "xalloc.h"
-#include <stdlib.h>
 #include <math.h>
+#include <stdlib.h>
+#include "xalloc.h"
 
 #define _(msgid) gettext (msgid)
 
-static int
+static bool
 read_values (double **values, double **weights, size_t *cnt) 
 {
   size_t cap = 0;
@@ -47,7 +47,7 @@ read_values (double **values, double **weights, size_t *cnt)
           if (!lex_is_number ())
             {
               lex_error (_("expecting weight value"));
-              return 0;
+              return false;
             }
           weight = tokval;
           lex_get ();
@@ -65,7 +65,7 @@ read_values (double **values, double **weights, size_t *cnt)
       (*cnt)++;
     }
 
-  return 1;
+  return true;
 }
 
 int