Watchers fix. Memory alignment on 64bit systems?
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@542 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
parent
ffc63ae838
commit
cb781bc3d6
|
@ -537,7 +537,7 @@ shm_init(struct dg_shm **shm_dg_data, struct dg_shm_game **shm_dg_game)
|
|||
}
|
||||
|
||||
(*shm_dg_data) = (struct dg_shm *)shm_data;
|
||||
(*shm_dg_game) = (struct dg_shm_game *)(shm_data + sizeof(struct dg_shm));
|
||||
(*shm_dg_game) = (struct dg_shm_game *)((*shm_dg_data) + sizeof(struct dg_shm));
|
||||
|
||||
if (!shm_data_existed && shm_data) {
|
||||
memset(*shm_dg_game, 0, shm_n_games*sizeof(struct dg_shm_game));
|
||||
|
|
Loading…
Reference in New Issue