summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-01-12 03:32:11 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-01-12 03:32:11 +0000
commit34dde379781ab666b3bd4e2588ebb74dd55af18e (patch)
tree0d3457cf5a0c4b0875c8d5c59255ea90ccacb2e3 /src/map
parent697869d09139d11c3662700c7a23ae8e8e513a21 (diff)
downloadhercules-34dde379781ab666b3bd4e2588ebb74dd55af18e.tar.gz
hercules-34dde379781ab666b3bd4e2588ebb74dd55af18e.tar.bz2
hercules-34dde379781ab666b3bd4e2588ebb74dd55af18e.tar.xz
hercules-34dde379781ab666b3bd4e2588ebb74dd55af18e.zip
ubuntu's gcc 4.6x warning fix, bugreport:5232 credits to gepard
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15435 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/script.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 203973860..c1f2744b9 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -12730,8 +12730,10 @@ BUILDIN_FUNC(strtoupper)
output = (char*)aMallocA(strlen(str) + 1);
- while(str[i] != '\0')
- output[i++] = TOUPPER(str[i]);
+ while(str[i] != '\0') {
+ i = i + 1;
+ output[i] = TOUPPER(str[i]);
+ }
output[i] = '\0';
script_pushstr(st, output);
@@ -12749,8 +12751,10 @@ BUILDIN_FUNC(strtolower)
output = (char*)aMallocA(strlen(str) + 1);
- while(str[i] != '\0')
- output[i++] = TOLOWER(str[i]);
+ while(str[i] != '\0') {
+ i = i + 1;
+ output[i] = TOLOWER(str[i]);
+ }
output[i] = '\0';
script_pushstr(st, output);