Skip to content

Commit

Permalink
Map Cabs.Tfloat128 to CIL TFloat with fkind FLongDouble. References #8
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-schwarz committed Nov 7, 2019
1 parent 8a60315 commit c0ad7b0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/frontc/cabs2cil.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2421,6 +2421,7 @@ let rec doSpecList (suggestedAnonName: string) (* This string will be part of
| [A.Tdouble] -> TFloat(FDouble, [])

| [A.Tlong; A.Tdouble] -> TFloat(FLongDouble, [])
| [A.Tfloat128] -> TFloat(FLongDouble, []) (* TODO: Correct? *)

(* Now the other type specifiers *)
| [A.Tnamed n] -> begin
Expand Down Expand Up @@ -2541,8 +2542,8 @@ let rec doSpecList (suggestedAnonName: string) (* This string will be part of
let e'' =
match getInteger (constFold true e') with
Some n ->
let ik = updateEnum n in
if !lowerConstants then kintegerCilint ik n else e'
let ik = updateEnum n in
if !lowerConstants then kintegerCilint ik n else e'
| _ -> E.s (error "Constant initializer %a not an integer" d_exp e')
in
processName kname e'' (convLoc cloc) rest
Expand Down

0 comments on commit c0ad7b0

Please sign in to comment.