diff options
author | ai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-02-19 21:07:43 +0000 |
---|---|---|
committer | ai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-02-19 21:07:43 +0000 |
commit | 9c8a86940f666a4a059195691a872f04ff1f414a (patch) | |
tree | 1b34503789691d315a9f070e28d4ff2e1043160c /src/char_sql/char.c | |
parent | 17f0f15706cebb77c4ffe236ae1ace6233c3800f (diff) | |
download | hercules-9c8a86940f666a4a059195691a872f04ff1f414a.tar.gz hercules-9c8a86940f666a4a059195691a872f04ff1f414a.tar.bz2 hercules-9c8a86940f666a4a059195691a872f04ff1f414a.tar.xz hercules-9c8a86940f666a4a059195691a872f04ff1f414a.zip |
* Fixed gcc compile warnings in char-server and console plug-in (bugreport:4771, topic:208746, since r9631 and r14700).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14716 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char_sql/char.c')
-rw-r--r-- | src/char_sql/char.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/char_sql/char.c b/src/char_sql/char.c index ee73606ef..e135fee78 100644 --- a/src/char_sql/char.c +++ b/src/char_sql/char.c @@ -493,7 +493,7 @@ int mmo_char_tosql(int char_id, struct mmo_charstatus* p) p->weapon, p->shield, p->head_top, p->head_mid, p->head_bottom, mapindex_id2name(p->last_point.map), p->last_point.x, p->last_point.y, mapindex_id2name(p->save_point.map), p->save_point.x, p->save_point.y, p->rename, - TOL(p->delete_date), // FIXME: platform-dependent size + (unsigned long)p->delete_date, // FIXME: platform-dependent size p->account_id, p->char_id) ) { Sql_ShowDebug(sql_handle); @@ -3076,7 +3076,7 @@ static void char_delete2_req(int fd, struct char_session_data* sd) // success delete_date = time(NULL)+char_del_delay; - if( SQL_SUCCESS != Sql_Query(sql_handle, "UPDATE `%s` SET `delete_date`='%lu' WHERE `char_id`='%d'", char_db, TOL(delete_date), char_id) ) + if( SQL_SUCCESS != Sql_Query(sql_handle, "UPDATE `%s` SET `delete_date`='%lu' WHERE `char_id`='%d'", char_db, (unsigned long)delete_date, char_id) ) { Sql_ShowDebug(sql_handle); char_delete2_ack(fd, char_id, 3, 0); |