Skip to content

Commit 85816e4

Browse files
authored
Add explicit cast to remove ambiguous operator== (Fixes #5329) (#5879)
1 parent e877e5b commit 85816e4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/IRMatch.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ struct WildConstInt {
252252
halide_scalar_value_t val;
253253
halide_type_t type;
254254
state.get_bound_const(i, val, type);
255-
return e.type == type && value == val.u.i64;
255+
return (halide_type_t)e.type == type && value == val.u.i64;
256256
}
257257
state.set_bound_const(i, value, e.type);
258258
return true;
@@ -318,7 +318,7 @@ struct WildConstUInt {
318318
halide_scalar_value_t val;
319319
halide_type_t type;
320320
state.get_bound_const(i, val, type);
321-
return e.type == type && value == val.u.u64;
321+
return (halide_type_t)e.type == type && value == val.u.u64;
322322
}
323323
state.set_bound_const(i, value, e.type);
324324
return true;
@@ -371,7 +371,7 @@ struct WildConstFloat {
371371
halide_scalar_value_t val;
372372
halide_type_t type;
373373
state.get_bound_const(i, val, type);
374-
return e.type == type && value == val.u.f64;
374+
return (halide_type_t)e.type == type && value == val.u.f64;
375375
}
376376
state.set_bound_const(i, value, e.type);
377377
return true;

0 commit comments

Comments
 (0)