diff options
author | shennetsind <ind@henn.et> | 2013-10-11 20:41:41 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-10-11 20:41:41 -0300 |
commit | cda114b13c65df0249c4c5b365c6860a1c7831ee (patch) | |
tree | 095a5abe67ad889e9eda1aaa1deb94e8ba8664ad /src/char | |
parent | f821e438d2d38df28c69f86c6b141d52f47e3e7c (diff) | |
download | hercules-cda114b13c65df0249c4c5b365c6860a1c7831ee.tar.gz hercules-cda114b13c65df0249c4c5b365c6860a1c7831ee.tar.bz2 hercules-cda114b13c65df0249c4c5b365c6860a1c7831ee.tar.xz hercules-cda114b13c65df0249c4c5b365c6860a1c7831ee.zip |
Fixed char.c msvc compiler warnings
Thanks to LuLu for bringing it up.
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/char')
-rw-r--r-- | src/char/char.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); |