aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/scumm/saveload.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/scumm/saveload.h b/engines/scumm/saveload.h
index 08ecf0258e..8af3cec46c 100644
--- a/engines/scumm/saveload.h
+++ b/engines/scumm/saveload.h
@@ -24,6 +24,7 @@
#define SAVELOAD_H
#include "common/scummsys.h"
+#include <stddef.h>
namespace Common {
class InSaveFile;
@@ -72,7 +73,7 @@ namespace Scumm {
* current reality (many of our complex structs are non-POD; for an explanation of
* what POD means refer to http://www-cpd.fnal.gov/personal/wb/boost/ISOcxx/doc/POD.html)
*/
-#define OFFS(type,item) (((long)(&((type*)42)->type::item))-42)
+#define OFFS(type,item) (((ptrdiff_t)(&((type*)42)->type::item))-42)
/**
* Similar to the OFFS macro, this macro computes the size (in bytes) of a