Skip to content

Commit c2955cc

Browse files
author
Chris Greenshields
committed
ParaView: updated patch file to fix bug in vtkMath::ClampValue
1 parent f8a53c4 commit c2955cc

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

ParaView-5.6.3.patch

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,24 @@ diff -ruN ParaView-5.6.3.orig/VTK/CMake/VTKGenerateExportHeader.cmake ParaView-5
4747
# gcc on mac just reports: "gcc (GCC) 3.3 20030304 ..." without the
4848
# patch level, handle this here:
4949
if(NOT _gcc_version)
50+
diff -ruN ParaView-5.6.3.orig/VTK/Common/Core/vtkMath.h ParaView-5.6.3/VTK/Common/Core/vtkMath.h
51+
--- ParaView-5.6.3.orig/VTK/Common/Core/vtkMath.h 2019-10-03 02:44:52.000000000 +0100
52+
+++ ParaView-5.6.3/VTK/Common/Core/vtkMath.h 2021-11-30 18:57:53.932760379 +0000
53+
@@ -1510,9 +1510,6 @@
54+
{
55+
assert("pre: valid_range" && min<=max);
56+
57+
-#if __cplusplus >= 201703L
58+
- return std::clamp(value, min, max);
59+
-#else
60+
if (value < min)
61+
{
62+
return min;
63+
@@ -1524,7 +1521,6 @@
64+
}
65+
66+
return value;
67+
-#endif
68+
}
69+
70+
//----------------------------------------------------------------------------

0 commit comments

Comments
 (0)