Fixed unaligned memory access in spcomp (r=dvander).
authorAsher Baker <asherkin@gmail.com>
Thu May 02 20:47:35 2013 +0000 (2013-05-02)
changeset 3908b3a5806ae087
parent 3907 f83867ebbfdd
child 3909 ee2a70d07457
Fixed unaligned memory access in spcomp (r=dvander).
sourcepawn/compiler/pawncc.c
     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;