Issue information

Issue ID
#2867
Status
Duplicate
Severity
None
Started
Hercules Elf Bot
Mar 15, 2009 19:44
Last Post
Hercules Elf Bot
Mar 15, 2009 19:44
Confirmation
N/A

Hercules Elf Bot - Mar 15, 2009 19:44

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

After the Marionete Skill Fixes, I got this warning when compiling at Linux:

CODE
status.c:5641: warning: comparison is always false due to limited range of data type
status.c:5642: warning: comparison is always false due to limited range of data type
status.c:5643: warning: comparison is always false due to limited range of data type
status.c:5644: warning: comparison is always false due to limited range of data type
status.c:5645: warning: comparison is always false due to limited range of data type
status.c:5646: warning: comparison is always false due to limited range of data type

Correspond to:
CODE
            stat = (psce->val3 >>16)&0xFF; stat = cap_value(status->str + stat, INT_MIN, max) - cap_value(status->str, INT_MIN, max); if (stat > 0xFF) stat = 0xFF; val3 |= stat<<16;
            stat = (psce->val3 >> 8)&0xFF; stat = cap_value(status->agi + stat, INT_MIN, max) - cap_value(status->agi, INT_MIN, max); if (stat > 0xFF) stat = 0xFF; val3 |= stat<<8;
            stat = (psce->val3 >> 0)&0xFF; stat = cap_value(status->vit + stat, INT_MIN, max) - cap_value(status->vit, INT_MIN, max); if (stat > 0xFF) stat = 0xFF; val3 |= stat;
            stat = (psce->val4 >>16)&0xFF; stat = cap_value(status->int_+ stat, INT_MIN, max) - cap_value(status->int_,INT_MIN, max); if (stat > 0xFF) stat = 0xFF; val4 |= stat<<16;
            stat = (psce->val4 >> 8)&0xFF; stat = cap_value(status->dex + stat, INT_MIN, max) - cap_value(status->dex, INT_MIN, max); if (stat > 0xFF) stat = 0xFF; val4 |= stat<<8;
            stat = (psce->val4 >> 0)&0xFF; stat = cap_value(status->luk + stat, INT_MIN, max) - cap_value(status->luk, INT_MIN, max); if (stat > 0xFF) stat = 0xFF; val4 |= stat;