summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-04-11 20:00:14 +0300
committerAndrei Karas <akaras@inbox.ru>2017-04-11 20:00:14 +0300
commit89899f1c9e2fe449b5164e582c672536f4684d61 (patch)
treeb4fe3deba73b615c942978bd996f8627a5452d45
parent817c8913704130dd38cf1959c305e8189a914a0f (diff)
parentdbb9e96b32bf84ce70070049bf931117b20e473d (diff)
downloadhercules-89899f1c9e2fe449b5164e582c672536f4684d61.tar.gz
hercules-89899f1c9e2fe449b5164e582c672536f4684d61.tar.bz2
hercules-89899f1c9e2fe449b5164e582c672536f4684d61.tar.xz
hercules-89899f1c9e2fe449b5164e582c672536f4684d61.zip
Merge remote-tracking branch '4144/fixwarnings'
-rw-r--r--src/char/char.c2
-rw-r--r--src/map/chrif.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/char/char.c b/src/char/char.c
index 1197e2811..1bfe91b26 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -3670,7 +3670,7 @@ void char_map_auth_ok(int fd, int account_id, struct char_auth_node* node, struc
nullpo_retv(cd);
WFIFOHEAD(fd,25 + sizeof(struct mmo_charstatus));
WFIFOW(fd,0) = 0x2afd;
- WFIFOW(fd,2) = 25 + sizeof(struct mmo_charstatus);
+ WFIFOW(fd,2) = 25 + (uint16)sizeof(struct mmo_charstatus);
WFIFOL(fd,4) = account_id;
if (node)
{
diff --git a/src/map/chrif.c b/src/map/chrif.c
index bf613b029..28b5485a1 100644
--- a/src/map/chrif.c
+++ b/src/map/chrif.c
@@ -306,7 +306,7 @@ bool chrif_save(struct map_session_data *sd, int flag) {
WFIFOHEAD(chrif->fd, sizeof(sd->status) + 13);
WFIFOW(chrif->fd,0) = 0x2b01;
- WFIFOW(chrif->fd,2) = sizeof(sd->status) + 13;
+ WFIFOW(chrif->fd,2) = (uint16)sizeof(sd->status) + 13;
WFIFOL(chrif->fd,4) = sd->status.account_id;
WFIFOL(chrif->fd,8) = sd->status.char_id;
WFIFOB(chrif->fd,12) = (flag==1)?1:0; //Flag to tell char-server this character is quitting.