diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-04-11 19:56:14 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-04-24 21:18:32 +0300 |
commit | 772547b7f45599db2dff5cd06b4aa92db5d3a1b6 (patch) | |
tree | c0aa955f3ff31f6ffd8938467d9cd10aba197b30 /src | |
parent | 1233f5d400e5a607fcd6636a2da6e1578ca19d88 (diff) | |
download | hercules-772547b7f45599db2dff5cd06b4aa92db5d3a1b6.tar.gz hercules-772547b7f45599db2dff5cd06b4aa92db5d3a1b6.tar.bz2 hercules-772547b7f45599db2dff5cd06b4aa92db5d3a1b6.tar.xz hercules-772547b7f45599db2dff5cd06b4aa92db5d3a1b6.zip |
Fix -Woverflow warnings with gcc-6.
Diffstat (limited to 'src')
-rw-r--r-- | src/char/char.c | 2 | ||||
-rw-r--r-- | src/map/chrif.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/char/char.c b/src/char/char.c index 93078f8ee..665ccfe19 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. |