Fix bug in test_sballoc.
authorRobert Haas <rhaas@postgresql.org>
Tue, 25 Mar 2014 18:29:16 +0000 (11:29 -0700)
committerRobert Haas <rhaas@postgresql.org>
Tue, 25 Mar 2014 18:29:16 +0000 (11:29 -0700)
contrib/test_sballoc/test_sballoc.c

index 309bf23d01dc965e8a8d10ebfe40dd4859937122..81f1a5b9512b0dc7f0b1a8c56b57bce1f358e59c 100644 (file)
@@ -25,7 +25,7 @@ Datum
 alloc(PG_FUNCTION_ARGS)
 {
        int64 size = PG_GETARG_INT64(0);
-       int64 count = PG_GETARG_INT64(0);
+       int64 count = PG_GETARG_INT64(1);
        int64 i;
        sb_allocator *a;