浏览代码

[fix] operator error

master
extra1563 4 年前
父节点
当前提交
a22b735d36
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      src/broker/modules/subscription.go

+ 1
- 1
src/broker/modules/subscription.go 查看文件

@@ -187,7 +187,7 @@ func (manager *sub_manager) addSubscription(msg MsgUnit) error {
187 187
 		// For compound expressions bounded by '&&' and '||'
188 188
 		// (ex) { (234 < x) && (x <= 1293) } , { (234 < x) || ( x < 1293) }
189 189
 
190
-		logical_operator := operator[2]
190
+		logical_operator := operator[1]
191 191
 
192 192
 		// Find ValueNode = (namelist[name].list.val == Value)
193 193
 		valptr1 := nameptr.list.getValueNodePos([]int64{value[0]})

正在加载...
取消
保存