diff options
author | Adam Borowski <kilobyte@angband.pl> | 2010-10-04 12:58:11 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2010-10-04 13:02:46 +0200 |
commit | 155ff773191782c6c88c3a638bdacf328172e46c (patch) | |
tree | c6353a32f21e070ff49ed962133041b194952baf /crawl-ref/source/dgnevent.h | |
parent | 185dc20a7ed60ad6ac3b28b8e1ab108fe9bf2676 (diff) | |
download | crawl-ref-155ff773191782c6c88c3a638bdacf328172e46c.tar.gz crawl-ref-155ff773191782c6c88c3a638bdacf328172e46c.zip |
Get rid of some more insidious longs.
Especially constructs like: long foo = x.props[].get_int()
can get you by surprise on 32 bit arches -- even worse now that most
devs are on amd64.
Item flags I typedeffed as iflags_t, as it's likely we'll have to extend
it soon, yet defining it as uint64_t now would be misleading since there
are so many places it's used in a 32 bit manner.
Diffstat (limited to 'crawl-ref/source/dgnevent.h')
-rw-r--r-- | crawl-ref/source/dgnevent.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/dgnevent.h b/crawl-ref/source/dgnevent.h index d864e897d4..d276848b31 100644 --- a/crawl-ref/source/dgnevent.h +++ b/crawl-ref/source/dgnevent.h @@ -49,12 +49,12 @@ public: dgn_event_type type; coord_def place; int elapsed_ticks; - long arg1, arg2; + int arg1, arg2; coord_def dest; public: dgn_event(dgn_event_type t, const coord_def &p = coord_def(), - int ticks = you.time_taken, long a1 = 0, long a2 = 0, + int ticks = you.time_taken, int a1 = 0, int a2 = 0, const coord_def &d = coord_def()) : type(t), place(p), elapsed_ticks(ticks), arg1(a1), arg2(a2), dest(d) |