From 44dea965c30af07ad546a8a78b093557a88f9314 Mon Sep 17 00:00:00 2001 From: skotlex Date: Mon, 30 Jan 2006 17:31:36 +0000 Subject: - Some compile warning fixes. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5123 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/char/int_pet.c | 4 ++-- src/char_sql/int_pet.c | 4 ++-- src/map/map.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/char/int_pet.c b/src/char/int_pet.c index a81acf3ed..0c029e445 100644 --- a/src/char/int_pet.c +++ b/src/char/int_pet.c @@ -333,8 +333,8 @@ int mapif_delete_pet(int fd,int pet_id) int mapif_parse_CreatePet(int fd) { RFIFOHEAD(fd); - mapif_create_pet(fd,RFIFOL(fd,2),RFIFOL(fd,6),RFIFOW(fd,10),RFIFOW(fd,12),RFIFOW(fd,14),RFIFOW(fd,16),RFIFOL(fd,18), - RFIFOL(fd,20),RFIFOB(fd,22),RFIFOB(fd,23),(char*)RFIFOP(fd,24)); + mapif_create_pet(fd,RFIFOL(fd,2),RFIFOL(fd,6),RFIFOW(fd,10),RFIFOW(fd,12),RFIFOW(fd,14),RFIFOW(fd,16),RFIFOW(fd,18), + RFIFOW(fd,20),RFIFOB(fd,22),RFIFOB(fd,23),(char*)RFIFOP(fd,24)); return 0; } diff --git a/src/char_sql/int_pet.c b/src/char_sql/int_pet.c index cc0e9330e..e48347b82 100644 --- a/src/char_sql/int_pet.c +++ b/src/char_sql/int_pet.c @@ -317,8 +317,8 @@ int mapif_delete_pet(int fd, int pet_id){ } int mapif_parse_CreatePet(int fd){ - mapif_create_pet(fd, RFIFOL(fd, 2), RFIFOL(fd, 6), RFIFOW(fd, 10), RFIFOW(fd, 12), RFIFOW(fd, 14), RFIFOW(fd, 16), RFIFOL(fd, 18), - RFIFOL(fd, 20), RFIFOB(fd, 22), RFIFOB(fd, 23), (char*)RFIFOP(fd, 24)); + mapif_create_pet(fd, RFIFOL(fd, 2), RFIFOL(fd, 6), RFIFOW(fd, 10), RFIFOW(fd, 12), RFIFOW(fd, 14), RFIFOW(fd, 16), RFIFOW(fd, 18), + RFIFOW(fd, 20), RFIFOB(fd, 22), RFIFOB(fd, 23), (char*)RFIFOP(fd, 24)); return 0; } diff --git a/src/map/map.c b/src/map/map.c index 06ddd7cb1..00df83fc0 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -1765,7 +1765,7 @@ struct map_session_data** map_getallusers(int *users) { all_sd = aRealloc(all_sd, all_count*sizeof(struct map_session_data*)); } *users = pc_db->getall(pc_db,(void**)all_sd,all_count,map_getallpc_sub); - if (*users > all_count) //Which should be impossible... + if (*users > (signed int)all_count) //Which should be impossible... *users = all_count; return all_sd; } -- cgit v1.2.3-70-g09d2