summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2018-07-01 18:38:11 +0200
committerHaru <haru@dotalux.com>2018-07-01 18:38:11 +0200
commite32fe0d37340cc46f493cfcfa349a0faef752cf2 (patch)
tree1ca475ae490330468dc88214057367c4bc57e932 /src/map
parent56bed6dba78e3d65f6ff5aeec924b3ba2d06459d (diff)
downloadhercules-e32fe0d37340cc46f493cfcfa349a0faef752cf2.tar.gz
hercules-e32fe0d37340cc46f493cfcfa349a0faef752cf2.tar.bz2
hercules-e32fe0d37340cc46f493cfcfa349a0faef752cf2.tar.xz
hercules-e32fe0d37340cc46f493cfcfa349a0faef752cf2.zip
Fix a sign comparison issue
Follow-up to 8ea98a7ff9 Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map')
-rw-r--r--src/map/clif.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 18fb063ef..68b9ce7ed 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -8968,7 +8968,7 @@ void clif_slide(struct block_list *bl, int x, int y)
void clif_disp_overhead(struct block_list *bl, const char *mes, enum send_target target, struct block_list *target_bl)
{
char buf[CHAT_SIZE_MAX + (int)sizeof(struct PACKET_ZC_NOTIFY_CHAT)];
- uint32 max_len = CHAT_SIZE_MAX - (int)sizeof(struct PACKET_ZC_NOTIFY_CHAT);
+ int max_len = CHAT_SIZE_MAX - (int)sizeof(struct PACKET_ZC_NOTIFY_CHAT);
struct PACKET_ZC_NOTIFY_CHAT *p = (struct PACKET_ZC_NOTIFY_CHAT *)&buf;
int mes_len;
@@ -9000,7 +9000,7 @@ void clif_disp_overhead(struct block_list *bl, const char *mes, enum send_target
void clif_notify_playerchat(struct block_list *bl, const char *mes)
{
char buf[CHAT_SIZE_MAX + (int)sizeof(struct PACKET_ZC_NOTIFY_PLAYERCHAT)];
- uint32 max_len = CHAT_SIZE_MAX - (int)sizeof(struct PACKET_ZC_NOTIFY_PLAYERCHAT);
+ int max_len = CHAT_SIZE_MAX - (int)sizeof(struct PACKET_ZC_NOTIFY_PLAYERCHAT);
struct PACKET_ZC_NOTIFY_PLAYERCHAT *p = (struct PACKET_ZC_NOTIFY_PLAYERCHAT *)&buf;
int mes_len;