File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -374,6 +374,9 @@ class ColPartition : public ELIST2_LINK {
374
374
// Returns the vertical overlap (by median) of this and other.
375
375
// WARNING! Only makes sense on horizontal partitions!
376
376
int VCoreOverlap (const ColPartition& other) const {
377
+ if (median_bottom_ == INT32_MAX || other.median_bottom_ == INT32_MAX) {
378
+ return 0 ;
379
+ }
377
380
return std::min (median_top_, other.median_top_ ) -
378
381
std::max (median_bottom_, other.median_bottom_ );
379
382
}
@@ -386,6 +389,9 @@ class ColPartition : public ELIST2_LINK {
386
389
// Returns true if this and other overlap significantly vertically.
387
390
// WARNING! Only makes sense on horizontal partitions!
388
391
bool VSignificantCoreOverlap (const ColPartition& other) const {
392
+ if (median_bottom_ == INT32_MAX || other.median_bottom_ == INT32_MAX) {
393
+ return false ;
394
+ }
389
395
int overlap = VCoreOverlap (other);
390
396
int height = std::min (median_top_ - median_bottom_,
391
397
other.median_top_ - other.median_bottom_ );
You can’t perform that action at this time.
0 commit comments