diff options
author | Eduardo Julian | 2018-08-23 17:18:30 -0400 |
---|---|---|
committer | Eduardo Julian | 2018-08-23 17:18:30 -0400 |
commit | d9965e587905cd715ecd4c7150236d660321a02c (patch) | |
tree | fb67b317abaf15a7cf7624f7542d15b6e8ecc055 /luxc/src/lux/compiler/jvm/proc/common.clj | |
parent | 27eed2a94ff9446014564958439fc5381584568b (diff) |
Optimized text clipping.
Diffstat (limited to 'luxc/src/lux/compiler/jvm/proc/common.clj')
-rw-r--r-- | luxc/src/lux/compiler/jvm/proc/common.clj | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/luxc/src/lux/compiler/jvm/proc/common.clj b/luxc/src/lux/compiler/jvm/proc/common.clj index 36f23263d..90f7b6bcf 100644 --- a/luxc/src/lux/compiler/jvm/proc/common.clj +++ b/luxc/src/lux/compiler/jvm/proc/common.clj @@ -263,7 +263,7 @@ &&/unwrap-long (.visitInsn Opcodes/L2I))] :let [_ (doto *writer* - (.visitMethodInsn Opcodes/INVOKESTATIC "lux/LuxRT" "text_clip" "(Ljava/lang/String;II)[Ljava/lang/Object;"))]] + (.visitMethodInsn Opcodes/INVOKEVIRTUAL "java/lang/String" "substring" "(II)Ljava/lang/String;"))]] (return nil))) (defn ^:private compile-text-index [compile ?values special-args] |