PyObject_HEAD
/* expose these */
- unsigned short kk;
- unsigned short mm;
+ short kk;
+ short mm;
/* internal */
fec_t* fec_matrix;
py_raise_fec_error("Precondition violation: first argument is required to be less than or equal to the second argument, but they were %d and %d respectively", ink, inm);
return -1;
}
- self->kk = (unsigned short)ink;
- self->mm = (unsigned short)inm;
+ self->kk = (short)ink;
+ self->mm = (short)inm;
self->fec_matrix = fec_new(self->kk, self->mm);
return 0;
};
static PyMemberDef Encoder_members[] = {
- {"k", T_INT, offsetof(Encoder, kk), READONLY, "k"},
- {"m", T_INT, offsetof(Encoder, mm), READONLY, "m"},
+ {"k", T_SHORT, offsetof(Encoder, kk), READONLY, "k"},
+ {"m", T_SHORT, offsetof(Encoder, mm), READONLY, "m"},
{NULL} /* Sentinel */
};
PyObject_HEAD
/* expose these */
- unsigned short kk;
- unsigned short mm;
+ short kk;
+ short mm;
/* internal */
fec_t* fec_matrix;
py_raise_fec_error("Precondition violation: first argument is required to be less than or equal to the second argument, but they were %d and %d respectively", ink, inm);
return -1;
}
- self->kk = (unsigned short)ink;
- self->mm = (unsigned short)inm;
+ self->kk = (short)ink;
+ self->mm = (short)inm;
self->fec_matrix = fec_new(self->kk, self->mm);
return 0;
};
static PyMemberDef Decoder_members[] = {
- {"k", T_INT, offsetof(Encoder, kk), READONLY, "k"},
- {"m", T_INT, offsetof(Encoder, mm), READONLY, "m"},
+ {"k", T_SHORT, offsetof(Encoder, kk), READONLY, "k"},
+ {"m", T_SHORT, offsetof(Encoder, mm), READONLY, "m"},
{NULL} /* Sentinel */
};