[iortcw] 262/497: SP: Change ofs from int to size_t in g_save
Simon McVittie
smcv at debian.org
Fri Sep 8 10:37:04 UTC 2017
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to annotated tag 1.42d
in repository iortcw.
commit 678fc22bbd55f54e8a1c842979fb2be5b21f236d
Author: M4N4T4RMS at gmail.com <M4N4T4RMS at gmail.com@e65d2741-a53d-b2dc-ae96-bb75fa5e4c4a>
Date: Sun Dec 7 23:48:54 2014 +0000
SP: Change ofs from int to size_t in g_save
---
SP/code/game/g_save.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/SP/code/game/g_save.c b/SP/code/game/g_save.c
index df10677..1c8b06b 100644
--- a/SP/code/game/g_save.c
+++ b/SP/code/game/g_save.c
@@ -78,7 +78,7 @@ typedef enum {
} saveFieldtype_t;
typedef struct {
- int ofs;
+ size_t ofs;
saveFieldtype_t type;
} saveField_t;
@@ -163,7 +163,7 @@ static saveField_t castStateFields[] = {
//.......................................................................................
// this is where we define fields or sections of structures that we should totally ignore
typedef struct {
- int ofs;
+ size_t ofs;
int len;
} ignoreField_t;
@@ -204,7 +204,7 @@ static ignoreField_t castStateIgnoreFields[] = {
// persistant data is optionally carried across level changes
// !! WARNING: cannot save pointer or string variables
typedef struct {
- int ofs;
+ size_t ofs;
int len;
} persField_t;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/iortcw.git
More information about the Pkg-games-commits
mailing list