Skip to content
Snippets Groups Projects
Commit be6aeb74 authored by brinn's avatar brinn
Browse files

change: simplify evalToBoolean()

SVN: 22399
parent 6ba82d77
No related branches found
No related tags found
No related merge requests found
...@@ -363,7 +363,7 @@ public final class Evaluator ...@@ -363,7 +363,7 @@ public final class Evaluator
doEval(); doEval();
try try
{ {
return ((PyBoolean) getInterpreterResult()).getValue() > 0; return ((PyBoolean) getInterpreterResult()).getBooleanValue();
} catch (ClassCastException ex) } catch (ClassCastException ex)
{ {
final ReturnType type = getType(); final ReturnType type = getType();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment