diff options
author | Greg Hogan <code@greghogan.com> | 2025-04-18 14:41:30 +0000 |
---|---|---|
committer | Greg Hogan <code@greghogan.com> | 2025-05-13 16:35:40 +0000 |
commit | 365d1ed9082fb995604ae60686b08ef19108fdc6 (patch) | |
tree | 0933eb67f0cd0fb0a6de8a4731148a6bf37528a7 /gnu/packages/patches/igraph-fix-varargs-integer-size.patch | |
parent | c6aaffba1c766d67cac28c47682952fb3ec095e5 (diff) |
gnu: igraph: Update to 0.10.15.
* gnu/packages/graph.scm (igraph): Update to 0.10.15.
[source]: Remove patches.
* gnu/packages/patches/igraph-fix-varargs-integer-size.patch: Delete.
* gnu/local.mk (dist_patch_DATA): Update accordingly.
Change-Id: Iffbfdc83b347f9abf82891f5b97954903d3df3dd
Diffstat (limited to 'gnu/packages/patches/igraph-fix-varargs-integer-size.patch')
-rw-r--r-- | gnu/packages/patches/igraph-fix-varargs-integer-size.patch | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/gnu/packages/patches/igraph-fix-varargs-integer-size.patch b/gnu/packages/patches/igraph-fix-varargs-integer-size.patch deleted file mode 100644 index 2d7ffd7e68..0000000000 --- a/gnu/packages/patches/igraph-fix-varargs-integer-size.patch +++ /dev/null @@ -1,39 +0,0 @@ -If the size of int is different from IGRAPH_INTEGER_SIZE, the integer size -passed to these vararg arguments is different from the assumed one, -leading to undefined behavior. -Submitted upstream: https://github.com/igraph/igraph/pull/2423 - - -diff -ur a/examples/simple/igraph_union.c b/examples/simple/igraph_union.c ---- a/examples/simple/igraph_union.c -+++ b/examples/simple/igraph_union.c -@@ -103,7 +103,7 @@ - igraph_vector_ptr_init(&glist, 10); - for (i = 0; i < igraph_vector_ptr_size(&glist); i++) { - VECTOR(glist)[i] = calloc(1, sizeof(igraph_t)); -- igraph_vector_int_init_int_end(&v, -1, i, i + 1, 1, 0, -1); -+ igraph_vector_int_init_int_end(&v, -1, (int) i, (int) i + 1, 1, 0, -1); - igraph_create(VECTOR(glist)[i], &v, 0, IGRAPH_DIRECTED); - igraph_vector_int_destroy(&v); - } -@@ -123,7 +123,7 @@ - igraph_vector_ptr_init(&glist, 10); - for (i = 0; i < igraph_vector_ptr_size(&glist); i++) { - VECTOR(glist)[i] = calloc(1, sizeof(igraph_t)); -- igraph_vector_int_init_int_end(&v, -1, i, i + 1, 1, 0, -1); -+ igraph_vector_int_init_int_end(&v, -1, (int) i, (int) i + 1, 1, 0, -1); - igraph_create(VECTOR(glist)[i], &v, 0, IGRAPH_UNDIRECTED); - igraph_vector_int_destroy(&v); - } -diff -ur a/src/core/matrix.pmt b/src/core/matrix.pmt ---- a/src/core/matrix.pmt -+++ b/src/core/matrix.pmt -@@ -1863,7 +1863,7 @@ - #ifdef FPRINTFUNC_ALIGNED - FPRINTFUNC_ALIGNED(file, VECTOR(column_width)[j], MATRIX(*m, i, j)); - #else -- fprintf(file, format, VECTOR(column_width)[j], MATRIX(*m, i, j)); -+ fprintf(file, format, (int) VECTOR(column_width)[j], MATRIX(*m, i, j)); - #endif - } - fprintf(file, "\n"); |