-#include "isl_list.h"
+/*
+ * Copyright 2008-2009 Katholieke Universiteit Leuven
+ *
+ * Use of this software is governed by the GNU LGPLv2.1 license
+ *
+ * Written by Sven Verdoolaege, K.U.Leuven, Departement
+ * Computerwetenschappen, Celestijnenlaan 200A, B-3001 Leuven, Belgium
+ */
+
+#include <isl/list.h>
+#include <isl/set.h>
struct isl_basic_set_list *isl_basic_set_list_alloc(struct isl_ctx *ctx, int n)
{
isl_assert(ctx, n >= 0, return NULL);
list = isl_alloc(ctx, struct isl_basic_set_list,
sizeof(struct isl_basic_set_list) +
- n * sizeof(struct isl_basic_set *));
+ (n - 1) * sizeof(struct isl_basic_set *));
if (!list)
return NULL;