From d1bc85a30bf8f1b55da9a4ac0240476ffead7e91 Mon Sep 17 00:00:00 2001 From: Allan Blanchard <allan.blanchard@cea.fr> Date: Tue, 5 Mar 2024 17:33:27 +0100 Subject: [PATCH] [variadic] fix type for print "%lc" --- src/plugins/variadic/format_typer.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/variadic/format_typer.ml b/src/plugins/variadic/format_typer.ml index 656b534c948..d5f60a7ee78 100644 --- a/src/plugins/variadic/format_typer.ml +++ b/src/plugins/variadic/format_typer.ml @@ -65,7 +65,7 @@ let type_f_specifier ?find_typedef spec = | #float_specifier, Some `l -> Cil.doubleType | #float_specifier, Some `L -> Cil.longDoubleType | `c, None -> Cil.intType - | `c, Some `l -> get_typedef ?find_typedef "wchar_t" + | `c, Some `l -> get_typedef ?find_typedef "wint_t" | `s, None -> Cil.charPtrType | `s, Some `l -> ptr (get_typedef ?find_typedef "wchar_t") | `p, None -> Cil.voidPtrType -- GitLab