diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-06-05 19:48:02 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-06-05 19:48:02 +0000 |
commit | cc2c0438f5d3013dfc5fc9f0e2371d464053e722 (patch) | |
tree | cc87d04ce67e5a7445dcdbae80432793c2dc6925 /src/map/pc.c | |
parent | 4bc74ed1e4119ab962652308df1044fba44376e6 (diff) | |
download | hercules-cc2c0438f5d3013dfc5fc9f0e2371d464053e722.tar.gz hercules-cc2c0438f5d3013dfc5fc9f0e2371d464053e722.tar.bz2 hercules-cc2c0438f5d3013dfc5fc9f0e2371d464053e722.tar.xz hercules-cc2c0438f5d3013dfc5fc9f0e2371d464053e722.zip |
- Fixed a pair of signed/unsigned mismatch comparison warnings in pc_bonus. Thanks to Nuisance for complaining.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6987 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index f07e34b2a..6b270023b 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -1325,7 +1325,7 @@ int pc_bonus(struct map_session_data *sd,int type,int val) break;
case SP_MAXHP:
if(sd->state.lr_flag != 2) {
- if (val < 0 && status->max_hp <= -val)
+ if (val < 0 && status->max_hp <= (unsigned int)(-val))
status->max_hp = 1;
else
status->max_hp+=val;
@@ -1333,7 +1333,7 @@ int pc_bonus(struct map_session_data *sd,int type,int val) break;
case SP_MAXSP:
if(sd->state.lr_flag != 2) {
- if (val < 0 && status->max_sp <= -val)
+ if (val < 0 && status->max_sp <= (unsigned int)(-val))
status->max_sp = 1;
else
status->max_sp+=val;
|