Minor fix in display of float values in errors messages (camlp4)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11124 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02master
parent
c91db736b1
commit
90e27e2019
|
@ -92,7 +92,7 @@ module ObjTools = struct
|
|||
| x when x = Obj.string_tag ->
|
||||
"\"" ^ String.escaped (Obj.magic r : string) ^ "\""
|
||||
| x when x = Obj.double_tag ->
|
||||
string_of_float (Obj.magic r : float)
|
||||
Camlp4_import.Oprint.float_repres (Obj.magic r : float)
|
||||
| x when x = Obj.abstract_tag ->
|
||||
opaque "abstract"
|
||||
| x when x = Obj.custom_tag ->
|
||||
|
|
|
@ -2938,7 +2938,7 @@ module ErrorHandler :
|
|||
| x when x = Obj.string_tag ->
|
||||
"\"" ^ ((String.escaped (Obj.magic r : string)) ^ "\"")
|
||||
| x when x = Obj.double_tag ->
|
||||
string_of_float (Obj.magic r : float)
|
||||
Camlp4_import.Oprint.float_repres (Obj.magic r : float)
|
||||
| x when x = Obj.abstract_tag -> opaque "abstract"
|
||||
| x when x = Obj.custom_tag -> opaque "custom"
|
||||
| x when x = Obj.final_tag -> opaque "final"
|
||||
|
|
Loading…
Reference in New Issue