Browse Source

[fix] operator error

master
extra1563 4 years ago
parent
commit
a22b735d36
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/broker/modules/subscription.go

+ 1
- 1
src/broker/modules/subscription.go View File

@@ -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]})

Loading…
Cancel
Save