remove pointer to long conversions - part 1 of 3 rev 2 (trunk only)
[the problem in the earlier rev was tracked to cleanup_burn(), where arg was holding a (genericptr_t) timer id, and passed directly to del_light_source() as is.] P64 (Win64) has a 64 bit pointer size, but a 32 bit long size. Remove some code that forced pointers into a long int, and vice versa where information could be lost. This part deals with light source functions and their arguments mostly, and switches some arguments from type genericptr_t to 'anything'.
This commit is contained in:
+2
-1
@@ -1,4 +1,4 @@
|
||||
/* SCCS Id: @(#)wintype.h 3.5 1996/02/18 */
|
||||
/* SCCS Id: @(#)wintype.h 3.5 2006/07/08 */
|
||||
/* Copyright (c) David Cohrs, 1991 */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -11,6 +11,7 @@ typedef int winid; /* a window identifier */
|
||||
typedef union any {
|
||||
genericptr_t a_void;
|
||||
struct obj *a_obj;
|
||||
struct monst *a_monst;
|
||||
int a_int;
|
||||
char a_char;
|
||||
schar a_schar;
|
||||
|
||||
Reference in New Issue
Block a user