pxd: initial work
[pspp] / tests / libpspp / hmapx-test.c
index c93a2cd1b1ea2bb16555d298131faf47d3c85cc3..93df1bfe530cefd218681d06d3766a1293ee3360 100644 (file)
@@ -1,5 +1,5 @@
 /* PSPP - a program for statistical analysis.
-   Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
+   Copyright (C) 2007, 2008, 2009, 2010, 2015 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
@@ -617,7 +617,7 @@ test_insert_ordered (int max_elems, hash_function *hash)
           int max = INT_MIN;
           int j;
 
-          for (j = 0; j <= hmapx.hmap.mask; j++) 
+          for (j = 0; j < hmap_n_buckets (&hmapx.hmap); j++) 
             {
               int count = 0;
               struct hmap_node *node;