summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-02-04 11:44:37 -0200
committershennetsind <ind@henn.et>2013-02-04 11:44:37 -0200
commit6ff53b01efdc79762ca691f50859f28fd78dc1d5 (patch)
treeb0ebc6c21d8538569e2632e560323956ea21f43e /src
parent6854d1526b34c552767bf37d4ff637d47a840549 (diff)
parent36de442965e31129560401ea3a0d81f9ecb6a2da (diff)
downloadhercules-6ff53b01efdc79762ca691f50859f28fd78dc1d5.tar.gz
hercules-6ff53b01efdc79762ca691f50859f28fd78dc1d5.tar.bz2
hercules-6ff53b01efdc79762ca691f50859f28fd78dc1d5.tar.xz
hercules-6ff53b01efdc79762ca691f50859f28fd78dc1d5.zip
Merge branch 'master' of https://github.com/HerculesWS/Hercules
Diffstat (limited to 'src')
-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;
}