X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Flibpspp%2Fhmapx-test.c;h=93df1bfe530cefd218681d06d3766a1293ee3360;hb=52c54183e360053b1845e46cb96cd44a0cf96040;hp=c93a2cd1b1ea2bb16555d298131faf47d3c85cc3;hpb=2ca3267c1110bbff675c560b19d02defb96ee2f9;p=pspp diff --git a/tests/libpspp/hmapx-test.c b/tests/libpspp/hmapx-test.c index c93a2cd1b1..93df1bfe53 100644 --- a/tests/libpspp/hmapx-test.c +++ b/tests/libpspp/hmapx-test.c @@ -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;