Avoid not fitting value on LoPairingInfo

This commit is contained in:
angie 2022-09-16 14:51:05 -03:00
parent bae12a18e8
commit b9037c70e3
3 changed files with 2 additions and 3 deletions

View File

@ -12,7 +12,7 @@
typedef struct RabbitizerLoPairingInfo {
int instrOffset;
int value;
int64_t value; // could be either an unsigned 32 bits number or a signed one, so use 64 bits to ensure it fits
bool shouldProcess;
bool isGpRel;
bool isGpGot;

View File

@ -23,7 +23,7 @@ static int rabbitizer_type_LoPairingInfo_init(PyRabbitizerLoPairingInfo *self, P
static PyMemberDef rabbitizer_type_LoPairingInfo_members[] = {
{ "instrOffset", T_INT, offsetof(PyRabbitizerLoPairingInfo, pairingInfo.instrOffset), 0, "" },
{ "value", T_INT, offsetof(PyRabbitizerLoPairingInfo, pairingInfo.value), 0, "" },
{ "value", T_LONG, offsetof(PyRabbitizerLoPairingInfo, pairingInfo.value), 0, "" },
{ "shouldProcess", T_BOOL, offsetof(PyRabbitizerLoPairingInfo, pairingInfo.shouldProcess), 0, "" },
{ "isGpRel", T_BOOL, offsetof(PyRabbitizerLoPairingInfo, pairingInfo.isGpRel), 0, "" },
{ "isGpGot", T_BOOL, offsetof(PyRabbitizerLoPairingInfo, pairingInfo.isGpGot), 0, "" },

View File

@ -61,7 +61,6 @@ void RabbitizerTrackedRegisterState_clearLo(RabbitizerTrackedRegisterState *self
self->loOffset = 0;
self->dereferenced = false;
self->dereferenceOffset = 0;
self->value = 0;
}
void RabbitizerTrackedRegisterState_copyState(RabbitizerTrackedRegisterState *self, const RabbitizerTrackedRegisterState *other) {