Fix linux warnings (and build?)

Former-commit-id: 21906adfdf35e5deecb10eb286a5b09b706f20a4
This commit is contained in:
Vincent Herbet
2013-06-25 19:06:11 +02:00
parent 89b28d5a4a
commit e3a380bbe4
5 changed files with 10 additions and 10 deletions

View File

@@ -1175,12 +1175,12 @@ int AMXAPI amx_GetNative(AMX *amx, int index, char *funcname)
int AMXAPI amx_FindNative(AMX *amx, const char *name, int *index)
{
int first,last,mid;
int last,mid;
char pname[sNAMEMAX+1];
amx_NumNatives(amx, &last);
last--; /* last valid index is 1 less than the number of functions */
first=0;
/* normal search */
for (mid=0; mid<=last; mid++)
{