Changeset: 7cc6bd3e8608 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/7cc6bd3e8608
Modified Files:
monetdb5/modules/atoms/str.c
Branch: txtsim-imp
Log Message:
Safety parens.
diffs (21 lines):
diff --git a/monetdb5/modules/atoms/str.c b/monetdb5/modules/atoms/str.c
--- a/monetdb5/modules/atoms/str.c
+++ b/monetdb5/modules/atoms/str.c
@@ -5230,7 +5230,6 @@ STRcontainsselect(bat *ret, const bat *b
B->tseqbase = 0;
\
} while (0)
-/* nested loop implementation for batstr joins */
#define batstr_join_loop(STRCMP, STR_LEN, WITH_STRIMPS)
\
do {
\
for (BUN ridx = 0; ridx < rci.ncand; ridx++) {
\
@@ -5385,7 +5384,8 @@ strjoin(BAT *r1, BAT *r2, BAT *l, BAT *r
/* batstr_join_loop(str_cmp(vl, vr, rlen) != 0, str_strlen(vr),
with_strimps); */
batstr_join_loop(anti && !with_strimps ?
- str_cmp(vl, vr, rlen) == 0 :
str_cmp(vl, vr, rlen) != 0,
+ (str_cmp(vl, vr, rlen) == 0) :
+ (str_cmp(vl, vr, rlen) != 0),
str_strlen(vr), with_strimps);
assert(!r2 || BATcount(r1) == BATcount(r2));
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]