librz/arch/luajit: fix parsing on big-endian machines (#6350)

This commit is contained in:
Arya H R 2026-05-14 10:23:19 +05:30 committed by GitHub
parent 2d1cff75ee
commit 9ce185e507
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -96,9 +96,9 @@ static ut64 handle_value_type(RzBuffer *buff, LuaJITValue *value, ut64 offset, L
offset += end_len;
value->size += end_len;
ut64 *heap_int = RZ_NEW(ut64);
st32 *heap_int = RZ_NEW(st32);
if (heap_int) {
*heap_int = _val;
*heap_int = (st32)_val;
value->data = heap_int;
}
break;