lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From uschind...@apache.org
Subject svn commit: r1523361 - /lucene/dev/branches/lucene5207/lucene/expressions/src/java/org/apache/lucene/expressions/js/JavascriptCompiler.java
Date Sat, 14 Sep 2013 23:54:13 GMT
Author: uschindler
Date: Sat Sep 14 23:54:13 2013
New Revision: 1523361

URL: http://svn.apache.org/r1523361
Log:
LUCENE-5207: Simpler without cast

Modified:
    lucene/dev/branches/lucene5207/lucene/expressions/src/java/org/apache/lucene/expressions/js/JavascriptCompiler.java

Modified: lucene/dev/branches/lucene5207/lucene/expressions/src/java/org/apache/lucene/expressions/js/JavascriptCompiler.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene5207/lucene/expressions/src/java/org/apache/lucene/expressions/js/JavascriptCompiler.java?rev=1523361&r1=1523360&r2=1523361&view=diff
==============================================================================
--- lucene/dev/branches/lucene5207/lucene/expressions/src/java/org/apache/lucene/expressions/js/JavascriptCompiler.java
(original)
+++ lucene/dev/branches/lucene5207/lucene/expressions/src/java/org/apache/lucene/expressions/js/JavascriptCompiler.java
Sat Sep 14 23:54:13 2013
@@ -531,7 +531,7 @@ public class JavascriptCompiler {
     if (expected == Type.INT_TYPE) {
         methodVisitor.push(truth);
     } else if (expected == Type.LONG_TYPE) {
-        methodVisitor.push((long) (truth ? 1 : 0));
+        methodVisitor.push(truth ? 1L : 0L);
     } else if (expected == Type.DOUBLE_TYPE) {
         methodVisitor.push(truth ? 1. : 0.);
     } else {



Mime
View raw message