Comply to AMXX style for more consistency in 8f3605ea03d5

Former-commit-id: 3075e0b375fcede21f2055442305d1ffdb9b64fd
This commit is contained in:
Vincent Herbet 2013-07-02 23:13:26 +02:00
parent 83e70d7dd7
commit 6912199ae0
2 changed files with 6 additions and 6 deletions

View File

@ -346,18 +346,18 @@ static cell AMX_NATIVE_CALL amx_strtol(AMX *amx, cell *params) /* 3 param */
int len;
int base = params[3];
if( base != 0 && ( base < 2 || base > 36 ) )
if (base != 0 && (base < 2 || base > 36))
base = 0;
char *pString = get_amxstring( amx, params[1], 0, len );
cell *endPos = get_amxaddr( amx, params[2] );
char *pString = get_amxstring(amx, params[1], 0, len);
cell *endPos = get_amxaddr(amx, params[2]);
*endPos = -1;
char *pEnd = NULL;
long result = strtol( pString, &pEnd, base );
long result = strtol(pString, &pEnd, base);
if( pEnd != NULL && pString != pEnd )
if (pEnd != NULL && pString != pEnd)
*endPos = pEnd - pString;
return result;

View File

@ -117,7 +117,7 @@ native str_to_num(const string[]);
* If the value read is out of the range of representable values by a cell,
* the function returns 'cellmin' or 'cellmax'.
*/
native strtol( const string[], &endPos = -1, base = 0 );
native strtol(const string[], &endPos = -1, base = 0);
/* Converts float to string. */
native float_to_str(Float:fl, string[], len);