From cda114b13c65df0249c4c5b365c6860a1c7831ee Mon Sep 17 00:00:00 2001 From: shennetsind Date: Fri, 11 Oct 2013 20:41:41 -0300 Subject: Fixed char.c msvc compiler warnings Thanks to LuLu for bringing it up. Signed-off-by: shennetsind --- src/char/char.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/char/char.c') diff --git a/src/char/char.c b/src/char/char.c index bbf561651..574e4f66b 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -1897,7 +1897,7 @@ int mmo_char_tobuf(uint8* buffer, struct mmo_charstatus* p) { offset += MAP_NAME_LENGTH_EXT; #endif #if PACKETVER >= 20100803 - WBUFL(buf,124) = p->delete_date; + WBUFL(buf,124) = (int)p->delete_date; offset += 4; #endif #if PACKETVER >= 20110111 @@ -3566,9 +3566,9 @@ void char_delete2_ack(int fd, int char_id, uint32 result, time_t delete_date) WFIFOL(fd,2) = char_id; WFIFOL(fd,6) = result; #if PACKETVER >= 20130000 - WFIFOL(fd,10) = delete_date - time(NULL); + WFIFOL(fd,10) = (int)(delete_date - time(NULL)); #else - WFIFOL(fd,10) = delete_date; + WFIFOL(fd,10) = (int)delete_date; #endif WFIFOSET(fd,14); -- cgit v1.2.3-60-g2f50