@@ -90,11 +90,11 @@ let parse_sign_and_base (s : string) =
90
90
91
91
let caml_int_of_string s =
92
92
let i, sign, hbase = parse_sign_and_base s in
93
- let base = Nativeint. of_int @@ int_of_string_base hbase in
93
+ let base = Nativeint. of_int ( int_of_string_base hbase) in
94
94
let threshold = (- 1n >>> 0 ) in
95
95
let len = Bs_string. length s in
96
96
let c = if i < len then s.[i] else '\000' in
97
- let d = to_nat @@ parse_digit c in
97
+ let d = to_nat ( parse_digit c) in
98
98
let () =
99
99
if d < 0n || d > = base then
100
100
caml_failwith " int_of_string" in
@@ -105,7 +105,7 @@ let caml_int_of_string s =
105
105
let a = s.[k] in
106
106
if a = '_' then aux acc ( k + 1 )
107
107
else
108
- let v = to_nat @@ parse_digit a in
108
+ let v = to_nat ( parse_digit a) in
109
109
if v < 0n || v > = base then
110
110
caml_failwith " int_of_string"
111
111
else
@@ -123,7 +123,7 @@ let caml_int_of_string s =
123
123
124
124
let caml_int64_of_string s =
125
125
let i, sign, hbase = parse_sign_and_base s in
126
- let base = Int64. of_int @@ int_of_string_base hbase in
126
+ let base = Int64. of_int ( int_of_string_base hbase) in
127
127
let sign = Int64. of_nativeint sign in
128
128
let threshold =
129
129
match hbase with
@@ -138,7 +138,7 @@ let caml_int64_of_string s =
138
138
in
139
139
let len = Bs_string. length s in
140
140
let c = if i < len then s.[i] else '\000' in
141
- let d = Int64. of_int @@ parse_digit c in
141
+ let d = Int64. of_int ( parse_digit c) in
142
142
let () =
143
143
if d < 0L || d > = base then
144
144
caml_failwith " int64_of_string" in
@@ -151,7 +151,7 @@ let caml_int64_of_string s =
151
151
let a = s.[k] in
152
152
if a = '_' then aux acc ( k + 1 )
153
153
else
154
- let v = Int64. of_int @@ parse_digit a in
154
+ let v = Int64. of_int ( parse_digit a) in
155
155
if v < 0L || v > = base || acc > threshold then
156
156
caml_failwith " int64_of_string"
157
157
else
@@ -195,7 +195,7 @@ let lowercase c =
195
195
let parse_format fmt =
196
196
let len = Bs_string. length fmt in
197
197
if len > 31 then
198
- raise @@ Invalid_argument " format_int: format too long" ;
198
+ raise ( Invalid_argument " format_int: format too long" ) ;
199
199
let rec aux (f : fmt ) i : fmt =
200
200
if i > = len then f
201
201
else
@@ -357,7 +357,7 @@ let aux f (i : nativeint) =
357
357
else
358
358
Nativeint. shift_right_logical i 0
359
359
else i in
360
- let s = ref @@ Bs_string. of_nativeint i ~base: (int_of_base f.base) in
360
+ let s = ref ( Bs_string. of_nativeint i ~base: (int_of_base f.base) ) in
361
361
if f.prec > = 0 then
362
362
begin
363
363
f.filter < - " " ;
@@ -501,7 +501,7 @@ let caml_format_float fmt x =
501
501
s := " nan" ;
502
502
f.filter < - " "
503
503
end
504
- else if not @@ FloatRT. isFinite x then
504
+ else if not ( FloatRT. isFinite x) then
505
505
begin
506
506
s := " inf" ;
507
507
f.filter < - " "
@@ -533,7 +533,7 @@ let caml_format_float fmt x =
533
533
let prec = if prec <> 0 then prec else 1 in
534
534
s := FloatRT. toExponentialWithPrecision x ~digits: (prec - 1 );
535
535
let j = Bs_string. index_of ! s " e" in
536
- let exp = int_of_float @@ FloatRT. fromString @@ Bs_string. slice_rest ! s (j + 1 ) in
536
+ let exp = Caml_float. int_of_float ( FloatRT. fromString ( Bs_string. slice_rest ! s (j + 1 )) ) in
537
537
if exp < - 4 || x > = 1e21 || Bs_string. length (FloatRT. toFixed x) > prec then
538
538
let i = ref (j - 1 ) in
539
539
while ! s.[! i] = '0' do
@@ -558,7 +558,7 @@ let caml_format_float fmt x =
558
558
decr p
559
559
done ;
560
560
if ! p <> 0 then
561
- let k = ref @@ Bs_string. length ! s - 1 in
561
+ let k = ref ( Bs_string. length ! s - 1 ) in
562
562
while ! s.[! k] = '0' do
563
563
decr k
564
564
done ;
0 commit comments