summaryrefslogtreecommitdiffstats
path: root/src/app/fht.cpp
diff options
context:
space:
mode:
authormio <[email protected]>2024-09-29 19:20:32 +1000
committerMichele Calgaro <[email protected]>2024-09-30 21:59:48 +0900
commit0dbeeeb9f20945e8edfd2d049a260283a84a8d75 (patch)
tree6e8c72ac03df7fb9b12da5276bb77f9c4e9c96f1 /src/app/fht.cpp
parentf41da351c6fa85a36a29611edc98cf74834b43af (diff)
downloadcodeine-0dbeeeb9f20945e8edfd2d049a260283a84a8d75.tar.gz
codeine-0dbeeeb9f20945e8edfd2d049a260283a84a8d75.zip
Address -Wall warnings
VideoWindow::ExposeEvent wasn't being used correctly; it should be a TQCustomEvent (although, the 3000 type is already being used for forwarding XINE_PROGRESS_EVENT). While the pts_per_smpls part never seemed to be encountered, it would have resulted in a floating point exception as it's always 0. Commented out to leave a hint as to what the code should be doing. Resolves: TDE/codeine#2 Signed-off-by: mio <[email protected]> (cherry picked from commit 9ef39acd5d211e5a8164bfb4a075e2e0cd6f9bee)
Diffstat (limited to 'src/app/fht.cpp')
-rw-r--r--src/app/fht.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app/fht.cpp b/src/app/fht.cpp
index f678bee..3a82ede 100644
--- a/src/app/fht.cpp
+++ b/src/app/fht.cpp
@@ -175,8 +175,8 @@ void FHT::power2(float *p)
*p = (*p * *p), *p += *p, p++;
- for (i = 1, q = p + m_num - 2; i < (m_num / 2); i++, --q)
- *p++ = (*p * *p) + (*q * *q);
+ for (i = 1, q = p + m_num - 2; i < (m_num / 2); i++, --q, p++)
+ *p = (*p * *p) + (*q * *q);
}