Author: trondeau
Date: 2007-06-06 13:13:18 -0600 (Wed, 06 Jun 2007)
New Revision: 5711
Modified:
gnuradio/branches/features/ofdm/sync/gnuradio-core/src/lib/general/gr_ofdm_bpsk_mapper.cc
Log:
fixed exception checking
Modified:
gnuradio/branches/features/ofdm/sync/gnuradio-core/src/lib/general/gr_ofdm_bpsk_mapper.cc
===================================================================
---
gnuradio/branches/features/ofdm/sync/gnuradio-core/src/lib/general/gr_ofdm_bpsk_mapper.cc
2007-06-06 19:12:51 UTC (rev 5710)
+++
gnuradio/branches/features/ofdm/sync/gnuradio-core/src/lib/general/gr_ofdm_bpsk_mapper.cc
2007-06-06 19:13:18 UTC (rev 5711)
@@ -47,7 +47,7 @@
d_bit_offset(0),
d_pending_flag(0)
{
- if (!d_occupied_carriers <= d_fft_length)
+ if (!(d_occupied_carriers <= d_fft_length))
throw std::invalid_argument("gr_ofdm_bpsk_mapper: occupied carriers must
be <= fft_length");
}
@@ -130,7 +130,7 @@
if (out_flag)
out_flag[0] = d_pending_flag;
d_pending_flag = 0;
-
+
return 1; // produced symbol
}
_______________________________________________
Commit-gnuradio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnuradio