ubuntu's gcc 4.6x warning fix, bugreport:5232 credits to gepard
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15435 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
7e71fb2a97
commit
5024a18fce
@ -12730,8 +12730,10 @@ BUILDIN_FUNC(strtoupper)
|
|||||||
|
|
||||||
output = (char*)aMallocA(strlen(str) + 1);
|
output = (char*)aMallocA(strlen(str) + 1);
|
||||||
|
|
||||||
while(str[i] != '\0')
|
while(str[i] != '\0') {
|
||||||
output[i++] = TOUPPER(str[i]);
|
i = i + 1;
|
||||||
|
output[i] = TOUPPER(str[i]);
|
||||||
|
}
|
||||||
output[i] = '\0';
|
output[i] = '\0';
|
||||||
|
|
||||||
script_pushstr(st, output);
|
script_pushstr(st, output);
|
||||||
@ -12749,8 +12751,10 @@ BUILDIN_FUNC(strtolower)
|
|||||||
|
|
||||||
output = (char*)aMallocA(strlen(str) + 1);
|
output = (char*)aMallocA(strlen(str) + 1);
|
||||||
|
|
||||||
while(str[i] != '\0')
|
while(str[i] != '\0') {
|
||||||
output[i++] = TOLOWER(str[i]);
|
i = i + 1;
|
||||||
|
output[i] = TOLOWER(str[i]);
|
||||||
|
}
|
||||||
output[i] = '\0';
|
output[i] = '\0';
|
||||||
|
|
||||||
script_pushstr(st, output);
|
script_pushstr(st, output);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user