Fixed unaligned memory access in spcomp (r=dvander).

This commit is contained in:
Asher Baker 2013-05-02 20:47:35 +00:00
parent 157a286d1b
commit 68ab7e2e3e

View File

@ -428,7 +428,7 @@ int main(int argc, char *argv[])
/* get entry info */
sym = (AMX_DBG_SYMBOL *)dbgptr;
/* store */
dbgsym.addr = *(int32_t *)&sym->address;
dbgsym.addr = (int32_t)sym->address;
dbgsym.tagid = sym->tag;
dbgsym.codestart = (uint32_t)sym->codestart;
dbgsym.codeend = (uint32_t)sym->codeend;