You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 4902 Reporter: furuse Status: closed (set by @damiendoligez on 2009-10-30T12:45:30Z) Resolution: fixed Priority: normal Severity: major Version: 3.11.1 Fixed in version: 3.11.2+dev Category: ~DO NOT USE (was: OCaml general)
Bug description
The summary tells everything.
The fix is easy:
diff --git a/stdlib/printf.ml b/stdlib/printf.ml
--- a/stdlib/printf.ml
+++ b/stdlib/printf.ml
@@ -435,7 +435,7 @@
let add_dot sfmt s =
if s.[0] = ' ' || s.[0] = '+' || s.[0] = '0'
then String.sub s 1 (l - 1) ^ "."
else String.sub s 0 (l - 1) ^ "." in
else String.sub s 0 l ^ "." in
let rec loop i =
if i >= l then add_dot sfmt s else
The text was updated successfully, but these errors were encountered:
I see the function format_float_lexem is largely rewritten in the trunk version. The issue is gone in the trunk, but I think it is still worth reporting.
Original bug ID: 4902
Reporter: furuse
Status: closed (set by @damiendoligez on 2009-10-30T12:45:30Z)
Resolution: fixed
Priority: normal
Severity: major
Version: 3.11.1
Fixed in version: 3.11.2+dev
Category: ~DO NOT USE (was: OCaml general)
Bug description
The summary tells everything.
The fix is easy:
diff --git a/stdlib/printf.ml b/stdlib/printf.ml
--- a/stdlib/printf.ml
+++ b/stdlib/printf.ml
@@ -435,7 +435,7 @@
let add_dot sfmt s =
if s.[0] = ' ' || s.[0] = '+' || s.[0] = '0'
then String.sub s 1 (l - 1) ^ "."
The text was updated successfully, but these errors were encountered: