aboutsummaryrefslogtreecommitdiffstats
path: root/core/bsinc_tables.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-12-17 22:36:44 -0800
committerChris Robinson <[email protected]>2023-12-17 22:36:44 -0800
commit708a90ef8ef7ee00991556298073c50dfa6e72a1 (patch)
tree5d72e46977dc241febfcf6ad4ab2ffbe2fadf2c3 /core/bsinc_tables.cpp
parentbc83c874ff15b29fdab9b6c0bf40b268345b3026 (diff)
Fix some implicit conversions
Diffstat (limited to 'core/bsinc_tables.cpp')
-rw-r--r--core/bsinc_tables.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/core/bsinc_tables.cpp b/core/bsinc_tables.cpp
index 03eb4341..6e3ee338 100644
--- a/core/bsinc_tables.cpp
+++ b/core/bsinc_tables.cpp
@@ -127,11 +127,9 @@ struct BSincHeader {
uint total_size{};
constexpr BSincHeader(uint Rejection, uint Order) noexcept
+ : width{CalcKaiserWidth(Rejection, Order)}, beta{CalcKaiserBeta(Rejection)}
+ , scaleBase{width / 2.0}
{
- width = CalcKaiserWidth(Rejection, Order);
- beta = CalcKaiserBeta(Rejection);
- scaleBase = width / 2.0;
-
uint num_points{Order+1};
for(uint si{0};si < BSincScaleCount;++si)
{