]> www.ginac.de Git - ginac.git/commitdiff
[TESTS] Fix node::operator< in time_antipode.cpp.
authorRichard Kreckel <kreckel@ginac.de>
Mon, 6 Jun 2022 16:52:02 +0000 (18:52 +0200)
committerRichard Kreckel <kreckel@ginac.de>
Mon, 6 Jun 2022 16:52:02 +0000 (18:52 +0200)
Reported by Yuri Gribov <tetra2005@gmail.com>.

check/time_antipode.cpp

index 5fbc5f9862b225b7a2bd99f60d8c5ed043af8c39..21f76b3256187e6ad93afd03ac1fa3c24957dea4 100644 (file)
@@ -308,7 +308,7 @@ bool node::operator<(const node &n) const
                return typeid(*vert).before(typeid(*n.vert));
        // Are the indices of the top-level nodes different?
        if (!(*vert==*n.vert))
-               return (vert<n.vert);
+               return (*vert<*n.vert);
        // Are the sets of children different, one by one?
        return (children<n.children);
 }