From 18fad1816337138a41875fbc300e694e7df9ee98 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Fri, 30 Jul 2021 14:13:18 +0300 Subject: [PATCH] fix Signed-off-by: Vasiliy Tolstov --- util/router/compile.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/router/compile.go b/util/router/compile.go index 7d06eea1..22f7d874 100644 --- a/util/router/compile.go +++ b/util/router/compile.go @@ -30,7 +30,7 @@ type Compiler interface { type op struct { // code is the opcode of the operation - code utilities.OpCode + code OpCode // str is a string operand of the code. // num is ignored if str is not empty. @@ -67,7 +67,7 @@ func (v variable) compile() []op { ops = append(ops, s.compile()...) } ops = append(ops, op{ - code: utilities.OpConcatN, + code: OpConcatN, num: len(v.segments), }, op{ code: OpCapture,