mirror of
https://github.com/Decompollaborate/rabbitizer.git
synced 2025-01-30 06:32:43 +00:00
Avoid not fitting value on LoPairingInfo
This commit is contained in:
parent
bae12a18e8
commit
b9037c70e3
@ -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;
|
||||
|
@ -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, "" },
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user