mirror of https://github.com/snes9xgit/snes9x.git
Silence NULL pointer subtraction warning.
Use a pointer to address 1 instead.
This commit is contained in:
parent
d99f79bcc0
commit
6b5cd1d45a
|
@ -48,7 +48,7 @@ enum
|
|||
};
|
||||
|
||||
#define COUNT(ARRAY) (sizeof(ARRAY) / sizeof(ARRAY[0]))
|
||||
#define Offset(field, structure) ((int) (((char *) (&(((structure) NULL)->field))) - ((char *) NULL)))
|
||||
#define Offset(field, structure) ((int) (((char *) (&(((structure) 1)->field))) - ((char *) 1)))
|
||||
#define OFFSET(f) Offset(f, STRUCT *)
|
||||
#define DUMMY(f) Offset(f, struct Obsolete *)
|
||||
#define DELETED(f) (-1)
|
||||
|
|
Loading…
Reference in New Issue