diff options
author | shennetsind <ind@henn.et> | 2013-02-06 00:08:48 -0200 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-02-06 00:08:48 -0200 |
commit | 90eefa03faff925a3d91e6041c63965a6b39c1b3 (patch) | |
tree | 0337f76cda8feae3430e83119178972cbbf48af9 /src/char | |
parent | 2eb3e450d53a450d2493fae0ede3632802de6dd6 (diff) | |
download | hercules-90eefa03faff925a3d91e6041c63965a6b39c1b3.tar.gz hercules-90eefa03faff925a3d91e6041c63965a6b39c1b3.tar.bz2 hercules-90eefa03faff925a3d91e6041c63965a6b39c1b3.tar.xz hercules-90eefa03faff925a3d91e6041c63965a6b39c1b3.zip |
Fixed Bug #7056
atoll was introduced in a 2011 lib and vc9 and 10 dont have that, dropping to atol since we dont need the int64 and using a tricky conversion to get it to unsigned
http://hercules.ws/board/tracker/issue-7056-compiling-error/
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/char')
-rw-r--r-- | src/char/int_guild.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/char/int_guild.c b/src/char/int_guild.c index b3a907b1a..c18bf7d3c 100644 --- a/src/char/int_guild.c +++ b/src/char/int_guild.c @@ -602,7 +602,7 @@ 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) { - unsigned int exp = atoll(split[0]); + unsigned int exp = (unsigned int)atol(split[0]); if (exp < 0 || exp >= UINT_MAX) { ShowError("exp_guild: Invalid exp %d at line %d\n", exp, current); |