summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/godpassive.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2011-09-01 13:13:29 +0200
committerAdam Borowski <kilobyte@angband.pl>2011-09-01 15:23:25 +0200
commite128f59130d5a83b1149eb2aa13d877de0005e49 (patch)
treef4fb8bb759ea7b7ffacd7dbb8ddc05a608ed913a /crawl-ref/source/godpassive.h
parentdab06ca6e2eb914740ff00cb4963cfd24203b0ea (diff)
downloadcrawl-ref-e128f59130d5a83b1149eb2aa13d877de0005e49.tar.gz
crawl-ref-e128f59130d5a83b1149eb2aa13d877de0005e49.zip
Fix some abuses of "char" as an integer type.
It is meant to store an arbitrary unit of memory (byte since the Stone Age), and details like signedness are undefined. For a "very short int", there are int8_t and uint8_t, with defined semantics. Here, we had chars of -1 used to mark disabled skills, which doesn't work on ARM and PPC.
Diffstat (limited to 'crawl-ref/source/godpassive.h')
-rw-r--r--crawl-ref/source/godpassive.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/godpassive.h b/crawl-ref/source/godpassive.h
index 061054bdd7..414bcb5ee3 100644
--- a/crawl-ref/source/godpassive.h
+++ b/crawl-ref/source/godpassive.h
@@ -49,6 +49,6 @@ void ash_id_monster_equipment(monster* mon);
int ash_detect_portals(bool all);
monster_type ash_monster_tier(const monster *mon);
int ash_skill_boost(skill_type sk);
-std::map<skill_type, char> ash_get_boosted_skills(eq_type type);
+std::map<skill_type, int8_t> ash_get_boosted_skills(eq_type type);
#endif