summaryrefslogtreecommitdiffstats
path: root/src/TII.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/TII.cpp')
-rw-r--r--src/TII.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/TII.cpp b/src/TII.cpp
index bafa343..5c85302 100644
--- a/src/TII.cpp
+++ b/src/TII.cpp
@@ -196,11 +196,9 @@ int TII::process(Buffer* const dataIn, Buffer* dataOut)
}
void TII::enable_carrier(int k) {
- fprintf(stderr, "k = %d\n", k);
-
int ix = m_carriers/2 + k;
- if (ix < 0 or ix > (ssize_t)m_dataIn.size()) {
+ if (ix < 0 or ix+1 >= (ssize_t)m_dataIn.size()) {
throw std::runtime_error(
"TII::enable_carrier invalid k!");
}