summaryrefslogtreecommitdiffstats
path: root/src/app/fht.cpp
diff options
context:
space:
mode:
authormio <[email protected]>2024-09-29 19:20:32 +1000
committermio <[email protected]>2024-09-29 20:45:04 +1000
commit9ef39acd5d211e5a8164bfb4a075e2e0cd6f9bee (patch)
tree96cae6b7241c050209b979dec64dc42e34f98ee3 /src/app/fht.cpp
parentc0311bdfc33f07dbde42a9b4f4758a6c505aae84 (diff)
downloadcodeine-9ef39acd5d211e5a8164bfb4a075e2e0cd6f9bee.tar.gz
codeine-9ef39acd5d211e5a8164bfb4a075e2e0cd6f9bee.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]>
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);
}