Fix Windows build error from non-const array size
This commit is contained in:
committed by
Bastian Bloessl
parent
83c02a1b66
commit
1b88193094
+2
-2
@@ -162,8 +162,8 @@ public:
|
|||||||
{
|
{
|
||||||
|
|
||||||
int n_cbps = d_ofdm.n_cbps;
|
int n_cbps = d_ofdm.n_cbps;
|
||||||
int first[n_cbps];
|
int first[MAX_BITS_PER_SYM];
|
||||||
int second[n_cbps];
|
int second[MAX_BITS_PER_SYM];
|
||||||
int s = std::max(d_ofdm.n_bpsc / 2, 1);
|
int s = std::max(d_ofdm.n_bpsc / 2, 1);
|
||||||
|
|
||||||
for (int j = 0; j < n_cbps; j++) {
|
for (int j = 0; j < n_cbps; j++) {
|
||||||
|
|||||||
+2
-2
@@ -224,8 +224,8 @@ void interleave(
|
|||||||
{
|
{
|
||||||
|
|
||||||
int n_cbps = ofdm.n_cbps;
|
int n_cbps = ofdm.n_cbps;
|
||||||
int first[n_cbps];
|
int first[MAX_BITS_PER_SYM];
|
||||||
int second[n_cbps];
|
int second[MAX_BITS_PER_SYM];
|
||||||
int s = std::max(ofdm.n_bpsc / 2, 1);
|
int s = std::max(ofdm.n_bpsc / 2, 1);
|
||||||
|
|
||||||
for (int j = 0; j < n_cbps; j++) {
|
for (int j = 0; j < n_cbps; j++) {
|
||||||
|
|||||||
+2
-1
@@ -28,7 +28,8 @@ using gr::ieee802_11::Encoding;
|
|||||||
#define MAX_PAYLOAD_SIZE 1500
|
#define MAX_PAYLOAD_SIZE 1500
|
||||||
#define MAX_PSDU_SIZE (MAX_PAYLOAD_SIZE + 28) // MAC, CRC
|
#define MAX_PSDU_SIZE (MAX_PAYLOAD_SIZE + 28) // MAC, CRC
|
||||||
#define MAX_SYM (((16 + 8 * MAX_PSDU_SIZE + 6) / 24) + 1)
|
#define MAX_SYM (((16 + 8 * MAX_PSDU_SIZE + 6) / 24) + 1)
|
||||||
#define MAX_ENCODED_BITS ((16 + 8 * MAX_PSDU_SIZE + 6) * 2 + 288)
|
#define MAX_BITS_PER_SYM 288
|
||||||
|
#define MAX_ENCODED_BITS ((16 + 8 * MAX_PSDU_SIZE + 6) * 2 + MAX_BITS_PER_SYM)
|
||||||
|
|
||||||
#define dout d_debug&& std::cout
|
#define dout d_debug&& std::cout
|
||||||
#define mylog(msg) \
|
#define mylog(msg) \
|
||||||
|
|||||||
Reference in New Issue
Block a user