diff options
Diffstat (limited to 'sci-mathematics/singular/files/singular-4.3.2_p16-lto.patch')
-rw-r--r-- | sci-mathematics/singular/files/singular-4.3.2_p16-lto.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/sci-mathematics/singular/files/singular-4.3.2_p16-lto.patch b/sci-mathematics/singular/files/singular-4.3.2_p16-lto.patch new file mode 100644 index 000000000000..a880f4ef5b12 --- /dev/null +++ b/sci-mathematics/singular/files/singular-4.3.2_p16-lto.patch @@ -0,0 +1,18 @@ +From 83a4e40c59dd99ff3131cbdb57b24b456aa04b93 Mon Sep 17 00:00:00 2001 +From: Hans Schoenemann <hannes@mathematik.uni-kl.de> +Date: Tue, 2 Apr 2024 15:09:51 +0200 +Subject: [PATCH] countedref + https://github.com/Singular/Singular/issues/1212 + +diff --git a/Singular/countedref.cc b/Singular/countedref.cc +index d3b783ade7..f83d7fab62 100644 +--- a/Singular/countedref.cc ++++ b/Singular/countedref.cc +@@ -108,7 +108,7 @@ class CountedRefData: + BOOLEAN put(leftv res) { return broken() || m_data.put(res); } + + /// Extract (shallow) copy of stored data +- LeftvShallow operator*() const { return (broken()? LeftvShallow(): (const LeftvShallow&)m_data); } ++ LeftvShallow operator*() { return (broken()? LeftvShallow(): LeftvShallow(m_data)); } + + /// Determine active ring when ring dependency changes + BOOLEAN rering() { |