diff options
author | Johannes Schickel | 2010-10-18 22:30:44 +0000 |
---|---|---|
committer | Johannes Schickel | 2010-10-18 22:30:44 +0000 |
commit | 70566beb78cc637b0d94ff587c4735d6edaa73ac (patch) | |
tree | cb4b61add8ff78fc8915cb2a87fb91ad9e770482 /engines | |
parent | a821d65efe255d9e86c5d7dc5f711152bb68fbed (diff) | |
download | scummvm-rg350-70566beb78cc637b0d94ff587c4735d6edaa73ac.tar.gz scummvm-rg350-70566beb78cc637b0d94ff587c4735d6edaa73ac.tar.bz2 scummvm-rg350-70566beb78cc637b0d94ff587c4735d6edaa73ac.zip |
SWORD25: Since ssize_t might not be available on all platforms use size_t for the pointer cast now.
svn-id: r53594
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sword25/util/pluto/pluto.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sword25/util/pluto/pluto.cpp b/engines/sword25/util/pluto/pluto.cpp index 2a39e98719..957f5af795 100644 --- a/engines/sword25/util/pluto/pluto.cpp +++ b/engines/sword25/util/pluto/pluto.cpp @@ -626,10 +626,10 @@ static void persist(PersistInfo *pi) int zero = 0; // FIXME: Casting a pointer to an integer data type is a bad idea we // should really get rid of this by fixing the design of this code. - // For now casting to ssize_t should silence most (all?) compilers, - // since ssize_t is supposedly the same size as a pointer on most + // For now casting to size_t should silence most (all?) compilers, + // since size_t is supposedly the same size as a pointer on most // (modern) architectures. - int ref = (ssize_t)lua_touserdata(pi->L, -1); + int ref = (int)(size_t)lua_touserdata(pi->L, -1); pi->writer(pi->L, &zero, sizeof(int), pi->ud); pi->writer(pi->L, &ref, sizeof(int), pi->ud); lua_pop(pi->L, 1); |