Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

when passed to Printf, %l%n%L should be interepreted as %u, not %d

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14818 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
  • Loading branch information...
commit e69ee15ef70d45e67f4a1d99015594e5163ff6b8 1 parent 689d9af
Gabriel Scherer authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 stdlib/camlinternalFormat.ml
View
4 stdlib/camlinternalFormat.ml
@@ -989,9 +989,9 @@ fun k o acc fmt -> match fmt with
| Scan_get_counter (_, rest) ->
(* This case should be refused for Printf. *)
(* Accepted for backward compatibility. *)
- (* Interpret %l, %n and %L as %d. *)
+ (* Interpret %l, %n and %L as %u. *)
fun n ->
- let new_acc = Acc_string (acc, format_int "%d" n) in
+ let new_acc = Acc_string (acc, format_int "%u" n) in
make_printf k o new_acc rest
| Ignored_param (ign, rest) ->
make_ignored_param k o acc ign rest
Please sign in to comment.
Something went wrong with that request. Please try again.