From 68ab7e2e3ebc0a808b27674619416ae8c5079540 Mon Sep 17 00:00:00 2001 From: Asher Baker Date: Thu, 2 May 2013 20:47:35 +0000 Subject: [PATCH] Fixed unaligned memory access in spcomp (r=dvander). --- sourcepawn/compiler/pawncc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sourcepawn/compiler/pawncc.c b/sourcepawn/compiler/pawncc.c index 5bb6fb8c..af1d9842 100644 --- a/sourcepawn/compiler/pawncc.c +++ b/sourcepawn/compiler/pawncc.c @@ -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;