Issue #1542 - [mtransport] Fix unaligned memory allocation in r_memory

Unaligend memory access can't work on RISC.
This commit is contained in:
Jiaxun Yang 2020-05-12 12:40:16 +08:00 committed by Roy Tam
commit 076a13bb2d

View file

@ -51,7 +51,7 @@ typedef struct r_malloc_chunk_ {
#endif
UCHAR type;
UINT4 size;
UCHAR memory[1];
UINT8 memory[1];
} r_malloc_chunk;
#define CHUNK_MEMORY_OFFSET offsetof(struct r_malloc_chunk_, memory)