Remove redundant casts

This commit is contained in:
Jonas Kvinge
2024-04-23 01:58:08 +02:00
parent 569bf6335b
commit 3edd218e3a
4 changed files with 15 additions and 15 deletions

View File

@@ -28,7 +28,7 @@
#include <QVector>
#include <QtMath>
FHT::FHT(uint n) : num_((n < 3) ? 0 : 1 << n), exp2_((n < 3) ? static_cast<int>(-1) : static_cast<int>(n)) {
FHT::FHT(uint n) : num_((n < 3) ? 0 : 1 << n), exp2_((n < 3) ? -1 : static_cast<int>(n)) {
if (n > 3) {
buf_vector_.resize(num_);