-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/algiane/pangea3-action
- Loading branch information
Showing
7 changed files
with
69 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Git LFS file not shown
This file was deleted.
Oops, something went wrong.
Git LFS file not shown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
unchanged: | ||
--- IO/XML/vtkXMLReader.cxx 2023-02-14 20:03:53.000000000 -0800 | ||
+++ IO/XML/vtkXMLReader.cxx.patch 2023-05-12 08:52:36.017274000 -0700 | ||
@@ -53,6 +53,7 @@ | ||
#include <algorithm> | ||
#include <cassert> | ||
#include <cctype> | ||
+#include <cmath> | ||
#include <functional> | ||
#include <locale> // C++ locale | ||
#include <numeric> | ||
@@ -1958,7 +1959,7 @@ | ||
if (!this->AbortExecute) | ||
{ | ||
// Round progress to nearest 100th. | ||
- float rounded = static_cast<float>(int((progress * 100) + 0.5f)) / 100.f; | ||
+ float const rounded = std::round(progress * 100) * 0.01; | ||
if (this->GetProgress() != rounded) | ||
{ | ||
this->UpdateProgress(rounded); | ||
only in patch2: | ||
unchanged: | ||
--- IO/XML/vtkXMLWriter.cxx 2023-02-14 20:03:53.000000000 -0800 | ||
+++ IO/XML/vtkXMLWriter-patch.cxx 2024-08-26 10:11:05.373719000 -0700 | ||
@@ -64,6 +64,7 @@ | ||
#include <memory> | ||
|
||
#include <cassert> | ||
+#include <cmath> | ||
#include <sstream> | ||
#include <string> | ||
|
||
@@ -3052,7 +3053,7 @@ | ||
if (!this->AbortExecute) | ||
{ | ||
// Round progress to nearest 100th. | ||
- float rounded = static_cast<float>(static_cast<int>((progress * 100) + 0.5f)) / 100.f; | ||
+ float const rounded = std::round(progress * 100) * 0.01; | ||
if (this->GetProgress() != rounded) | ||
{ | ||
this->UpdateProgress(rounded); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- vtkXMLWriter.cxx 2023-02-14 20:03:53.000000000 -0800 | ||
+++ vtkXMLWriter-patch.cxx 2024-08-26 10:11:05.373719000 -0700 | ||
@@ -64,6 +64,7 @@ | ||
#include <memory> | ||
|
||
#include <cassert> | ||
+#include <cmath> | ||
#include <sstream> | ||
#include <string> | ||
|
||
@@ -3052,7 +3053,7 @@ | ||
if (!this->AbortExecute) | ||
{ | ||
// Round progress to nearest 100th. | ||
- float rounded = static_cast<float>(static_cast<int>((progress * 100) + 0.5f)) / 100.f; | ||
+ float const rounded = std::round(progress * 100) * 0.01; | ||
if (this->GetProgress() != rounded) | ||
{ | ||
this->UpdateProgress(rounded); |