summaryrefslogtreecommitdiff
path: root/textproc/ruby-ferret/patches/patch-ext_q__span.c
blob: 10cb2daddde811d07e1a4d78f593f9ede18ece9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-ext_q__span.c,v 1.1 2021/02/14 15:06:43 taca Exp $

Really compare two objects.

--- ext/q_span.c.orig	2021-01-11 06:15:38.585794380 +0000
+++ ext/q_span.c
@@ -2254,7 +2254,7 @@ static int spanxq_eq(Query *self, Query 
 Query *spanxq_new_nr(Query *inc, Query *exc)
 {
     Query *self;
-    if (SpQ(inc)->field != SpQ(inc)->field) {
+    if (SpQ(inc)->field != SpQ(exc)->field) {
         RAISE(ARG_ERROR, "All clauses in a SpanQuery must have the same field. "
               "Attempted to add a SpanQuery with field \"%s\" along with a "
               "SpanQuery with field \"%s\" to an SpanNotQuery",