summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/pugixml.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pugixml.cpp b/src/pugixml.cpp
index e974794..415fb24 100644
--- a/src/pugixml.cpp
+++ b/src/pugixml.cpp
@@ -4588,7 +4588,7 @@ namespace pstd
I hole = it;
// move hole backwards
- while (!pred(*(hole - 1), val))
+ while (pred(val, *(hole - 1)))
{
*hole = *(hole - 1);
hole--;