File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed
Modules/Core/Common/include Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -1047,20 +1047,20 @@ compilers.
1047
1047
/* * Set built-in type where value is constrained between min/max limits.
1048
1048
* Create member Set"name"() (e.q., SetRadius()). \#defines are
1049
1049
* convenience for clamping open-ended values. */
1050
- #define itkSetClampMacro (name, type, min, max ) \
1051
- virtual void Set##name(type _arg) \
1052
- { \
1053
- const type temp_extrema = (_arg < min ? min : (_arg > max ? max : _arg)); \
1054
- itkDebugMacro (" setting " << #name " to " << _arg); \
1055
- CLANG_PRAGMA_PUSH \
1056
- CLANG_SUPPRESS_Wfloat_equal \
1057
- if (this ->m_ ##name != temp_extrema) \
1058
- { \
1059
- this ->m_ ##name = temp_extrema; \
1060
- this ->Modified (); \
1061
- } \
1062
- CLANG_PRAGMA_POP \
1063
- } \
1050
+ #define itkSetClampMacro (name, type, min, max ) \
1051
+ virtual void Set##name(type _arg) \
1052
+ { \
1053
+ const type temp_extrema = (_arg <= min ? min : (_arg >= max ? max : _arg)); \
1054
+ itkDebugMacro (" setting " << #name " to " << _arg); \
1055
+ CLANG_PRAGMA_PUSH \
1056
+ CLANG_SUPPRESS_Wfloat_equal \
1057
+ if (this ->m_ ##name != temp_extrema) \
1058
+ { \
1059
+ this ->m_ ##name = temp_extrema; \
1060
+ this ->Modified (); \
1061
+ } \
1062
+ CLANG_PRAGMA_POP \
1063
+ } \
1064
1064
ITK_MACROEND_NOOP_STATEMENT
1065
1065
// clang-format on
1066
1066
You can’t perform that action at this time.
0 commit comments