Compiler: Ignore #pragma tabsize with non-positive argument.

Imported from SA-MP: https://github.com/Zeex/pawn/commit/7f30a03f9411d2169ee9e413ceb8f5b9c07dc120.
This commit is contained in:
Arkshine
2014-08-26 09:04:50 +02:00
parent 1b3b07d4d8
commit b2442a2268
2 changed files with 7 additions and 2 deletions
+2 -1
View File
@@ -1131,7 +1131,8 @@ static int command(void)
} else if (strcmp(str,"tabsize")==0) {
cell val;
preproc_expr(&val,NULL);
sc_tabsize=(int)val;
if (val>0)
sc_tabsize=(int)val;
} else if (strcmp(str,"align")==0) {
sc_alignnext=TRUE;
} else if (strcmp(str,"unused")==0) {