[jruby-joni] 67/194: opt

Hideki Yamane henrich at moszumanska.debian.org
Thu Feb 1 12:04:27 UTC 2018


This is an automated email from the git hooks/post-receive script.

henrich pushed a commit to branch debian/sid
in repository jruby-joni.

commit 31e44774573b4471aa018afa1d6ebb45d1d6054e
Author: Marcin Mielzynski <lopx at gazeta.pl>
Date:   Sat Dec 30 16:32:46 2017 +0100

    opt
---
 src/org/joni/ArrayCompiler.java | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/org/joni/ArrayCompiler.java b/src/org/joni/ArrayCompiler.java
index fb3c464..9715c72 100644
--- a/src/org/joni/ArrayCompiler.java
+++ b/src/org/joni/ArrayCompiler.java
@@ -844,11 +844,7 @@ final class ArrayCompiler extends Compiler {
                     len += node.isRecursion() ? OPSize.MEMORY_END_REC : OPSize.MEMORY_END;
                 }
             } else { // USE_SUBEXP_CALL
-                if (bsAt(regex.btMemStart, node.regNum)) {
-                    len = OPSize.MEMORY_START_PUSH;
-                } else {
-                    len = OPSize.MEMORY_START;
-                }
+                len = OPSize.MEMORY_START_PUSH; // or OPSize.MEMORY_START;
                 len += tlen + (bsAt(regex.btMemEnd, node.regNum) ? OPSize.MEMORY_END_PUSH : OPSize.MEMORY_END);
             }
             break;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/jruby-joni.git



More information about the pkg-java-commits mailing list