diff options
| author | Pierre Roux | 2020-03-28 11:07:54 +0100 |
|---|---|---|
| committer | Pierre Roux | 2020-05-09 17:58:00 +0200 |
| commit | deb2607027c158d313b82846c67594067194c8b7 (patch) | |
| tree | 66f51f9b6aee5b028ab0c4ce7985259c7710b5f4 /interp/notation.ml | |
| parent | 97567ffeb0e41ca5d0ee523e30a7ac0dfdbebddd (diff) | |
Rename functions
"decimal" would no longer be an appropriate name when extending to
hexadecimal for instance.
Diffstat (limited to 'interp/notation.ml')
| -rw-r--r-- | interp/notation.ml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/interp/notation.ml b/interp/notation.ml index 7761606f11..63c539d0eb 100644 --- a/interp/notation.ml +++ b/interp/notation.ml @@ -626,7 +626,7 @@ let coqint_of_rawnum inds (sign,n) = mkApp (mkConstruct (inds.int, pos_neg), [|uint|]) let coqdecimal_of_rawnum inds n = - let i, f, e = NumTok.Signed.to_decimal_and_exponent n in + let i, f, e = NumTok.Signed.to_int_frac_and_exponent n in let i = coqint_of_rawnum inds.int i in let f = coquint_of_rawnum inds.int.uint f in match e with @@ -669,7 +669,7 @@ let rawnum_of_decimal c = let n = rawnum_of_coqint i in let f = try Some (rawnum_of_coquint f) with NotAValidPrimToken -> None in let e = match e with None -> None | Some e -> Some (rawnum_of_coqint e) in - NumTok.Signed.of_decimal_and_exponent n f e in + NumTok.Signed.of_int_frac_and_exponent n f e in match Constr.kind c with | App (_,[|i; f|]) -> of_ife i f None | App (_,[|i; f; e|]) -> of_ife i f (Some e) |
