File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
c2rust-transpile/src/translator Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ impl<'c> Translation<'c> {
7171 }
7272
7373 /// Return whether the literal can be directly translated as this type.
74- pub fn literal_kind_matches_ty ( & self , lit : & CLiteral , ty : CQualTypeId ) -> bool {
74+ pub fn literal_matches_ty ( & self , lit : & CLiteral , ty : CQualTypeId ) -> bool {
7575 let ty_kind = & self . ast_context . resolve_type ( ty. ctype ) . kind ;
7676 match * lit {
7777 CLiteral :: Integer ( value, _) if ty_kind. is_integral_type ( ) && !ty_kind. is_bool ( ) => {
Original file line number Diff line number Diff line change @@ -3699,7 +3699,7 @@ impl<'c> Translation<'c> {
36993699 if let ( Some ( ty) , CExprKind :: Literal ( _ty, lit) ) =
37003700 ( override_ty, & self . ast_context [ expr] . kind )
37013701 {
3702- if self . literal_kind_matches_ty ( lit, ty) {
3702+ if self . literal_matches_ty ( lit, ty) {
37033703 return self . convert_expr ( ctx, expr, override_ty) ;
37043704 }
37053705 }
You can’t perform that action at this time.
0 commit comments