Stage1: Add compile error for an empty switch on a integer
This commit is contained in:
committed by
Andrew Kelley
parent
e3404e3c78
commit
94299d16d1
@@ -40,6 +40,9 @@ void rangeset_sort(RangeSet *rs) {
|
||||
}
|
||||
|
||||
bool rangeset_spans(RangeSet *rs, BigInt *first, BigInt *last) {
|
||||
if (rs->src_range_list.length == 0)
|
||||
return false;
|
||||
|
||||
rangeset_sort(rs);
|
||||
|
||||
const Range *first_range = &rs->src_range_list.at(0).range;
|
||||
|
||||
Reference in New Issue
Block a user