From 90eefa03faff925a3d91e6041c63965a6b39c1b3 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Wed, 6 Feb 2013 00:08:48 -0200 Subject: 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 --- src/char/int_guild.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3-70-g09d2