File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -252,7 +252,7 @@ struct WildConstInt {
252
252
halide_scalar_value_t val;
253
253
halide_type_t type;
254
254
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 ;
256
256
}
257
257
state.set_bound_const (i, value, e.type );
258
258
return true ;
@@ -318,7 +318,7 @@ struct WildConstUInt {
318
318
halide_scalar_value_t val;
319
319
halide_type_t type;
320
320
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 ;
322
322
}
323
323
state.set_bound_const (i, value, e.type );
324
324
return true ;
@@ -371,7 +371,7 @@ struct WildConstFloat {
371
371
halide_scalar_value_t val;
372
372
halide_type_t type;
373
373
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 ;
375
375
}
376
376
state.set_bound_const (i, value, e.type );
377
377
return true ;
You can’t perform that action at this time.
0 commit comments