diff options
author | Ben Cheng <bccheng@google.com> | 2013-03-18 11:41:47 -0700 |
---|---|---|
committer | Ben Cheng <bccheng@google.com> | 2013-03-18 11:41:47 -0700 |
commit | 1ec95f8f26bf31c28aa8e99707e129a088335c8a (patch) | |
tree | 3324828f960072c14a2175cfc9d10963bec8f370 | |
parent | 7033730f508f5046771e4a768f8d24e825ac1cd7 (diff) | |
download | quake-1ec95f8f26bf31c28aa8e99707e129a088335c8a.tar.gz |
Add (void *) to make gcc 4.7 happy under strict-alias mode.
Change-Id: Ibe9b5826375577884112d55e0fb31d3c7be697cf
-rw-r--r-- | quake/src/WinQuake/pr_exec.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/quake/src/WinQuake/pr_exec.cpp b/quake/src/WinQuake/pr_exec.cpp index 2af657a..596454e 100644 --- a/quake/src/WinQuake/pr_exec.cpp +++ b/quake/src/WinQuake/pr_exec.cpp @@ -577,7 +577,7 @@ while (1) #ifdef PARANOID NUM_FOR_EDICT(ed); // make sure it's in range #endif - a = (eval_t *)(ed->u.i + b->_int); + a = (eval_t *)((void *) (ed->u.i + b->_int)); c->_int = a->_int; break; @@ -586,7 +586,7 @@ while (1) #ifdef PARANOID NUM_FOR_EDICT(ed); // make sure it's in range #endif - a = (eval_t *)(ed->u.i + b->_int); + a = (eval_t *)((void *) (ed->u.i + b->_int)); c->vector[0] = a->vector[0]; c->vector[1] = a->vector[1]; c->vector[2] = a->vector[2]; |