Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
ParaView: updated patch file to fix bug in vtkMath::ClampValue
  • Loading branch information
Chris Greenshields committed Dec 1, 2021
1 parent f8a53c4 commit c2955cc
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions ParaView-5.6.3.patch
Expand Up @@ -47,3 +47,24 @@ diff -ruN ParaView-5.6.3.orig/VTK/CMake/VTKGenerateExportHeader.cmake ParaView-5
# gcc on mac just reports: "gcc (GCC) 3.3 20030304 ..." without the
# patch level, handle this here:
if(NOT _gcc_version)
diff -ruN ParaView-5.6.3.orig/VTK/Common/Core/vtkMath.h ParaView-5.6.3/VTK/Common/Core/vtkMath.h
--- ParaView-5.6.3.orig/VTK/Common/Core/vtkMath.h 2019-10-03 02:44:52.000000000 +0100
+++ ParaView-5.6.3/VTK/Common/Core/vtkMath.h 2021-11-30 18:57:53.932760379 +0000
@@ -1510,9 +1510,6 @@
{
assert("pre: valid_range" && min<=max);

-#if __cplusplus >= 201703L
- return std::clamp(value, min, max);
-#else
if (value < min)
{
return min;
@@ -1524,7 +1521,6 @@
}

return value;
-#endif
}

//----------------------------------------------------------------------------

0 comments on commit c2955cc

Please sign in to comment.