File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
c2rust-transpile/src/translator Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -4414,7 +4414,8 @@ impl<'c> Translation<'c> {
4414
4414
| CastKind :: IntegralCast
4415
4415
| CastKind :: FloatingCast
4416
4416
| CastKind :: FloatingToIntegral
4417
- | CastKind :: IntegralToFloating => {
4417
+ | CastKind :: IntegralToFloating
4418
+ | CastKind :: BooleanToSignedIntegral => {
4418
4419
let target_ty = self . convert_type ( ty. ctype ) ?;
4419
4420
let target_ty_ctype = & self . ast_context . resolve_type ( ty. ctype ) . kind ;
4420
4421
@@ -4571,11 +4572,6 @@ impl<'c> Translation<'c> {
4571
4572
}
4572
4573
}
4573
4574
4574
- // I don't know how to actually cause clang to generate this
4575
- CastKind :: BooleanToSignedIntegral => Err ( TranslationError :: generic (
4576
- "TODO boolean to signed integral not supported" ,
4577
- ) ) ,
4578
-
4579
4575
CastKind :: FloatingRealToComplex
4580
4576
| CastKind :: FloatingComplexToIntegralComplex
4581
4577
| CastKind :: FloatingComplexCast
You can’t perform that action at this time.
0 commit comments