From 60402c551f309b3eb87f83f2b67906229f688625 Mon Sep 17 00:00:00 2001 From: Bernhard Schommer Date: Thu, 22 Sep 2016 10:10:48 +0200 Subject: Allow %lf type specifier in printf. %lf is official part of the C99 standard. Bug 19877 --- driver/Interp.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'driver/Interp.ml') diff --git a/driver/Interp.ml b/driver/Interp.ml index f42bed32..c197d004 100644 --- a/driver/Interp.ml +++ b/driver/Interp.ml @@ -304,7 +304,7 @@ let format_value m flags length conv arg = format_int64 (flags ^ conv) (camlint64_of_coqint i) | ('d'|'i'|'u'|'o'|'x'|'X'), ("ll"|"j"), _ -> " + | ('f'|'e'|'E'|'g'|'G'|'a'), "l", Vfloat f -> format_float (flags ^ conv) (camlfloat_of_coqfloat f) | ('f'|'e'|'E'|'g'|'G'|'a'), "", _ -> "