mirror of
https://github.com/opensim/opensim.git
synced 2026-06-30 02:57:02 +08:00
Remove the ((bool)()) cast, since it can make c# barf
This commit is contained in:
@@ -470,9 +470,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
|
||||
{
|
||||
string retstr = String.Empty;
|
||||
|
||||
retstr += GenerateIndented("if ((bool)(", ifs);
|
||||
retstr += GenerateIndented("if (", ifs);
|
||||
retstr += GenerateNode((SYMBOL) ifs.kids.Pop());
|
||||
retstr += GenerateLine("))");
|
||||
retstr += GenerateLine(")");
|
||||
|
||||
// CompoundStatement handles indentation itself but we need to do it
|
||||
// otherwise.
|
||||
|
||||
Reference in New Issue
Block a user