isl_basic_map_gist: avoid invalid access on error path
[isl.git] / isl_piplib.c
blobffca54d021bd05b0fb45567e68a93f75960a012f
1 /*
2 * Copyright 2008-2009 Katholieke Universiteit Leuven
4 * Use of this software is governed by the MIT license
6 * Written by Sven Verdoolaege, K.U.Leuven, Departement
7 * Computerwetenschappen, Celestijnenlaan 200A, B-3001 Leuven, Belgium
8 */
10 #include "isl_piplib.h"
12 void isl_seq_cpy_to_pip(Entier *dst, isl_int *src, unsigned len)
14 int i;
16 for (i = 0; i < len; ++i)
17 entier_assign(dst[i], src[i]);
20 void isl_seq_cpy_from_pip(isl_int *dst, Entier *src, unsigned len)
22 int i;
24 for (i = 0; i < len; ++i)
25 entier_assign(dst[i], src[i]);