small fixes
This commit is contained in:
@@ -107,12 +107,19 @@ int part_if(){
|
|||||||
|
|
||||||
getfollowingchar('{');
|
getfollowingchar('{');
|
||||||
|
|
||||||
|
if (!condition)
|
||||||
|
skipbrackets();
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
/*
|
||||||
if (condition)
|
if (condition)
|
||||||
return 0;
|
return 0;
|
||||||
else {
|
else {
|
||||||
skipbrackets();
|
skipbrackets();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
int part_Math(){
|
int part_Math(){
|
||||||
@@ -130,7 +137,7 @@ int part_Math(){
|
|||||||
case '*':
|
case '*':
|
||||||
return left * right;
|
return left * right;
|
||||||
case '/':
|
case '/':
|
||||||
return left * right;
|
return left / right;
|
||||||
}
|
}
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user