summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/stash.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2010-10-04 12:58:11 +0200
committerAdam Borowski <kilobyte@angband.pl>2010-10-04 13:02:46 +0200
commit155ff773191782c6c88c3a638bdacf328172e46c (patch)
treec6353a32f21e070ff49ed962133041b194952baf /crawl-ref/source/stash.h
parent185dc20a7ed60ad6ac3b28b8e1ab108fe9bf2676 (diff)
downloadcrawl-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/stash.h')
-rw-r--r--crawl-ref/source/stash.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/stash.h b/crawl-ref/source/stash.h
index 5a34379193..2cf1fb874d 100644
--- a/crawl-ref/source/stash.h
+++ b/crawl-ref/source/stash.h
@@ -93,7 +93,7 @@ public:
static bool is_filtered(const item_def &item);
private:
- void _update_corpses(long rot_time);
+ void _update_corpses(int rot_time);
void add_item(const item_def &item, bool add_to_front = false);
private:
@@ -264,7 +264,7 @@ public:
private:
int _num_enabled_stashes() const;
- void _update_corpses(long rot_time);
+ void _update_corpses(int rot_time);
private:
typedef std::map<int, Stash> stashes_t;
@@ -350,7 +350,7 @@ private:
typedef std::map<level_id, LevelStashes> stash_levels_t;
stash_levels_t levels;
- long last_corpse_update;
+ int last_corpse_update;
friend class ST_ItemIterator;
};