Skip to content

Commit 877f422

Browse files
Fix integralPromotion optional arg syntax: use ?width not ?(width:int option=None)
Co-authored-by: michael-schwarz <13812333+michael-schwarz@users.noreply.github.com> Agent-Logs-Url: https://github.com/goblint/cil/sessions/b375cb35-22a8-482e-9239-4b1def60eb18
1 parent 6c76a45 commit 877f422

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/frontc/cabs2cil.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1359,7 +1359,7 @@ type condExpRes =
13591359
| CENot of condExpRes
13601360

13611361
(******** CASTS *********)
1362-
let rec integralPromotion ?(width : int option = None) (t : typ) : typ = (* c.f. ISO 6.3.1.1 *)
1362+
let rec integralPromotion ?width (t : typ) : typ = (* c.f. ISO 6.3.1.1 *)
13631363
let int_bits = bitsSizeOf (TInt (IInt, [])) in
13641364
match unrollType t with
13651365
TInt (IBool, a) -> TInt (IInt, a) (* _Bool can only be 0 or 1, irrespective of its size *)

0 commit comments

Comments
 (0)