psppire-output-view: Use correct enumeration type in call.
[pspp] / src / libpspp / integer-format.c
index fa5d6da96f8d3cb48c397cc4298199ba68e808a0..fb1851fd886c6dae95da7adac6d404b338936f60 100644 (file)
@@ -1,5 +1,5 @@
 /* PSPP - a program for statistical analysis.
-   Copyright (C) 2006 Free Software Foundation, Inc.
+   Copyright (C) 2006, 2010, 2011, 2013 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -16,7 +16,7 @@
 
 #include <config.h>
 
-#include <libpspp/integer-format.h>
+#include "libpspp/integer-format.h"
 
 #include <assert.h>
 
@@ -52,7 +52,7 @@ integer_get (enum integer_format format, const void *from_, size_t cnt)
   size_t i;
 
   assert (is_integer_format (format));
-  assert (cnt < 8);
+  assert (cnt <= 8);
 
   switch (format)
     {
@@ -84,7 +84,7 @@ integer_put (uint64_t value, enum integer_format format, void *to_, size_t cnt)
   size_t i;
 
   assert (is_integer_format (format));
-  assert (cnt < 8);
+  assert (cnt <= 8);
 
   value <<= 8 * (8 - cnt);