Issue information

Issue ID
#1946
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Jul 29, 2008 20:04
Last Post
Hercules Elf Bot
Jul 29, 2008 20:04
Confirmation
N/A

Hercules Elf Bot - Jul 29, 2008 20:04

Originally posted by [b]cyberking[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=1946

In make i get warnings on skill.c

CODE
skill.c: In function âskill_get_indexâ:
skill.c:82: warning: suggest parentheses around && within ||
skill.c:82: warning: suggest parentheses around && within ||
skill.c: In function âskill_parse_row_skilldbâ:
skill.c:10805: warning: suggest parentheses around && within ||
skill.c:10805: warning: suggest parentheses around && within ||


CODE
    if( id >= GD_SKILLRANGEMIN && id <= GD_SKILLRANGEMAX
    ||  id >= HM_SKILLRANGEMIN && id <= HM_SKILLRANGEMAX
    ||  id >= MC_SKILLRANGEMIN && id <= MC_SKILLRANGEMAX )