Fixed unaligned memory access in spcomp (r=dvander).
Fixed unaligned memory access in spcomp (r=dvander).
1.1 --- a/sourcepawn/compiler/pawncc.c Thu May 02 15:31:01 2013 -0400
1.2 +++ b/sourcepawn/compiler/pawncc.c Thu May 02 20:47:35 2013 +0000
1.3 @@ -428,7 +428,7 @@
1.4 /* get entry info */
1.5 sym = (AMX_DBG_SYMBOL *)dbgptr;
1.6 /* store */
1.7 - dbgsym.addr = *(int32_t *)&sym->address;
1.8 + dbgsym.addr = (int32_t)sym->address;
1.9 dbgsym.tagid = sym->tag;
1.10 dbgsym.codestart = (uint32_t)sym->codestart;
1.11 dbgsym.codeend = (uint32_t)sym->codeend;