File: upstream-fix-gcc15-compile_error_in_hashtree_cpp.path

package info (click to toggle)
texmacs 1%3A2.1.4%2Bds-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 145,080 kB
  • sloc: cpp: 227,393; lisp: 197,386; ansic: 5,395; python: 1,939; makefile: 1,065; sh: 781; perl: 339; xml: 100; awk: 36
file content (20 lines) | stat: -rw-r--r-- 690 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: upstream: fix: GCC-15: compile error in hashtree.cpp
 This issue was fixed upstream: http://savannah.gnu.org/bugs/?66656.
Origin: upstream
Forwarded: not-needed
Author:
 Reno Dakota <https://github.com/paparodeo> (orignal patcher)
 Jerome Benoit <calculus@rezozer.net>
Last-Update: 2025-09-07

--- a/src/Kernel/Containers/hashtree.cpp
+++ b/src/Kernel/Containers/hashtree.cpp
@@ -94,7 +94,7 @@
 
 template<class K, class V> inline hashtree<K,V> 
 hashtree<K,V>::operator[] (K key) {
-  if (*this->contains (key)) return *this->children (key);
+  if ((*this)->contains (key)) return (*this)->children (key);
   else FAILED ("read-access to non-existent node requested");
 }