Browse Source

Remove assert

gingerBill 7 years ago
parent
commit
a6b0ae71b2
1 changed files with 0 additions and 1 deletions
  1. 0 1
      src/check_expr.cpp

+ 0 - 1
src/check_expr.cpp

@@ -603,7 +603,6 @@ i64 assign_score_function(i64 distance, bool is_variadic=false) {
 	i64 const c = 3*MAXIMUM_TYPE_DISTANCE*MAXIMUM_TYPE_DISTANCE + 1;
 	i64 const c = 3*MAXIMUM_TYPE_DISTANCE*MAXIMUM_TYPE_DISTANCE + 1;
 
 
 	// TODO(bill): A decent score function
 	// TODO(bill): A decent score function
-	GB_ASSERT(distance <= MAXIMUM_TYPE_DISTANCE);
 	i64 d = distance*distance; // x^2
 	i64 d = distance*distance; // x^2
 	if (is_variadic && d >= 0) {
 	if (is_variadic && d >= 0) {
 		d += distance + 1; // x^2 + x + 1
 		d += distance + 1; // x^2 + x + 1