summaryrefslogtreecommitdiff
path: root/src/char/int_guild.c
diff options
context:
space:
mode:
authorMysterious <mysteriousragnarok@hotmail.com>2013-02-05 17:08:29 -0800
committerMysterious <mysteriousragnarok@hotmail.com>2013-02-05 17:08:29 -0800
commit5e76d9a1a0ab36af5d8ad072ea4dcbf6122b0ae9 (patch)
treea938a98c1d3b856dd37cc989ac0d39d2de58abe1 /src/char/int_guild.c
parent9909d3bf4f4ad0acad48fbe5f1cfe69e44109da9 (diff)
parent2eb3e450d53a450d2493fae0ede3632802de6dd6 (diff)
downloadhercules-5e76d9a1a0ab36af5d8ad072ea4dcbf6122b0ae9.tar.gz
hercules-5e76d9a1a0ab36af5d8ad072ea4dcbf6122b0ae9.tar.bz2
hercules-5e76d9a1a0ab36af5d8ad072ea4dcbf6122b0ae9.tar.xz
hercules-5e76d9a1a0ab36af5d8ad072ea4dcbf6122b0ae9.zip
Merge pull request #2 from HerculesWS/master
Merging Hercules Commits from Feb 3 - 5 2013.
Diffstat (limited to 'src/char/int_guild.c')
-rw-r--r--src/char/int_guild.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/char/int_guild.c b/src/char/int_guild.c
index 9cb17dca8..b3a907b1a 100644
--- a/src/char/int_guild.c
+++ b/src/char/int_guild.c
@@ -602,9 +602,9 @@ static struct guild_castle* inter_guildcastle_fromsql(int castle_id)
// Read exp_guild.txt
static bool exp_guild_parse_row(char* split[], int column, int current)
{
- int exp = atoi(split[0]);
+ unsigned int exp = atoll(split[0]);
- if (exp < 0 || exp >= INT_MAX) {
+ if (exp < 0 || exp >= UINT_MAX) {
ShowError("exp_guild: Invalid exp %d at line %d\n", exp, current);
return false;
}