[Gdcm-hackers] gdcm-git:Grassroots DICOM branch release updated. 6775070bc837412d3af8cd6466e99db2b5
Cross-platform DICOM implementation
Brought to you by:
malat
|
From: malat <ma...@us...> - 2023-05-02 09:21:29
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Grassroots DICOM".
The branch, release has been updated
via 6775070bc837412d3af8cd6466e99db2b5ae7630 (commit)
from b68517be732dfda9d50debdc096ff2a3c72f006f (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceforge.net/p/gdcm/gdcm/ci/6775070bc837412d3af8cd6466e99db2b5ae7630/
commit 6775070bc837412d3af8cd6466e99db2b5ae7630
Author: Sean McBride <se...@ro...>
Date: Tue Apr 4 21:27:39 2023 -0400
Manually fixed all clang-tidy bugprone-incorrect-roundings warnings
diff --git a/.clang-tidy b/.clang-tidy
index 2b15e51b0..8c7084dfd 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -14,7 +14,6 @@ Checks: '-*,
-bugprone-assignment-in-if-condition,
-bugprone-unhandled-self-assignment,
-bugprone-macro-parentheses,
- -bugprone-incorrect-roundings,
-bugprone-undefined-memory-manipulation,
-bugprone-parent-virtual-call,
-bugprone-reserved-identifier,
diff --git a/Source/MediaStorageAndFileFormat/gdcmSegmentedPaletteColorLookupTable.cxx b/Source/MediaStorageAndFileFormat/gdcmSegmentedPaletteColorLookupTable.cxx
index 7c1fdc8f2..e033b72de 100644
--- a/Source/MediaStorageAndFileFormat/gdcmSegmentedPaletteColorLookupTable.cxx
+++ b/Source/MediaStorageAndFileFormat/gdcmSegmentedPaletteColorLookupTable.cxx
@@ -18,6 +18,7 @@
//
#include <map>
#include <algorithm>
+#include <cmath>
#include <iterator>
#include <vector>
#include <deque>
@@ -87,7 +88,7 @@ namespace gdcm
double value_float
= static_cast<double>(y0)
+ (static_cast<double>(i)/static_cast<double>(length)) * y01;
- EntryType value_int = static_cast<EntryType>(value_float + 0.5);
+ EntryType value_int = static_cast<EntryType>(std::llround(value_float));
expanded.push_back(value_int);
}
return true;
diff --git a/Utilities/.clang-tidy b/Utilities/.clang-tidy
index 013a3eff9..69b0ce8ca 100644
--- a/Utilities/.clang-tidy
+++ b/Utilities/.clang-tidy
@@ -15,7 +15,6 @@ Checks: '-*,
-bugprone-assignment-in-if-condition,
-bugprone-unhandled-self-assignment,
-bugprone-macro-parentheses,
- -bugprone-incorrect-roundings,
-bugprone-undefined-memory-manipulation,
-bugprone-parent-virtual-call,
-bugprone-reserved-identifier,
-----------------------------------------------------------------------
Summary of changes:
.clang-tidy | 1 -
.../MediaStorageAndFileFormat/gdcmSegmentedPaletteColorLookupTable.cxx | 3 ++-
Utilities/.clang-tidy | 1 -
3 files changed, 2 insertions(+), 3 deletions(-)
hooks/post-receive
--
Grassroots DICOM
|