Skip to content

Commit defb85d

Browse files
committed
Turn check that's always true into an assert
1 parent 09076da commit defb85d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/subtype.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1058,7 +1058,8 @@ static int subtype_tuple_tail(jl_datatype_t *xd, jl_datatype_t *yd, int8_t R, jl
10581058
if (!check_vararg_length(yi, lx+1-ly, e))
10591059
return 0;
10601060
}
1061-
return (lx + vx == ly + vy) || (vy && (lx >= (vx ? ly : (ly-1))));
1061+
assert((lx + vx == ly + vy) || (vy && (lx >= (vx ? ly : (ly-1)))));
1062+
return 1;
10621063
}
10631064

10641065
static int subtype_tuple(jl_datatype_t *xd, jl_datatype_t *yd, jl_stenv_t *e, int param)

0 commit comments

Comments
 (0)