From 3075e0b375fcede21f2055442305d1ffdb9b64fd Mon Sep 17 00:00:00 2001 From: Vincent Herbet Date: Tue, 2 Jul 2013 23:13:26 +0200 Subject: [PATCH] Comply to AMXX style for more consistency in 8f3605ea03d5 --- amxmodx/string.cpp | 10 +++++----- plugins/include/string.inc | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/amxmodx/string.cpp b/amxmodx/string.cpp index 815928b5..41c9084b 100755 --- a/amxmodx/string.cpp +++ b/amxmodx/string.cpp @@ -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; diff --git a/plugins/include/string.inc b/plugins/include/string.inc index 36e39fda..8b910c55 100755 --- a/plugins/include/string.inc +++ b/plugins/include/string.inc @@ -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);