@@ -600,11 +600,7 @@ <h1><a href="https://github.com/bloomberg/bucklescript">BuckleScript</a> User Ma
600
600
< li > < a href ="#_physical_in_equality "> Physical (in)equality</ a > </ li >
601
601
< li > < a href ="#_string_char_range "> String char range</ a > </ li >
602
602
< li > < a href ="#_weak_map "> Weak map</ a > </ li >
603
- < li > < a href ="#_integers "> Integers</ a >
604
- < ul class ="sectlevel3 ">
605
- < li > < a href ="#__code_int_code "> < code > int</ code > </ a > </ li >
606
- </ ul >
607
- </ li >
603
+ < li > < a href ="#_integers "> Integers</ a > </ li >
608
604
< li > < a href ="#_printf_printf "> Printf.printf</ a > </ li >
609
605
< li > < a href ="#_hashtbl_hash_algorithm "> Hashtbl hash algorithm</ a > </ li >
610
606
< li > < a href ="#_marshall "> Marshall</ a > </ li >
@@ -3141,17 +3137,11 @@ <h3 id="_weak_map"><a class="anchor" href="#_weak_map"></a>Weak map</h3>
3141
3137
< div class ="sect2 ">
3142
3138
< h3 id ="_integers "> < a class ="anchor " href ="#_integers "> </ a > Integers</ h3 >
3143
3139
< div class ="paragraph ">
3144
- < p > OCaml has < code > int</ code > , < code > int32</ code > , < code > nativeint</ code > and < code > int64</ code > types. Both < code > int32</ code >
3145
- and < code > int64</ code > have the exact same semantic.</ p >
3146
- </ div >
3147
- < div class ="sect3 ">
3148
- < h4 id ="__code_int_code "> < a class ="anchor " href ="#__code_int_code "> </ a > < code > int</ code > </ h4 >
3149
- < div class ="paragraph ">
3150
- < p > < code > int</ code > in BuckleScript is the same as < code > int32</ code > where it’s platform
3151
- dependent.
3152
- < mark > #</ mark > # < code > nativeint</ code >
3153
- Treated as JavaScript float, except for division. For example,
3154
- < code > Nativeint.div a b</ code > will be translated into < code > a /b | 0</ code > .</ p >
3140
+ < p > OCaml has < code > int</ code > , < code > int32</ code > , < code > nativeint</ code > and < code > int64</ code > types.
3141
+ - Both < code > int32</ code > and < code > int64</ code > in BuckleScript have the exact same semantics as OCaml.
3142
+ - < code > int</ code > in BuckleScript is the same as < code > int32</ code > while in OCaml it’s platform dependent.
3143
+ - < code > nativeint</ code > is treated as JavaScript float, except for division.
3144
+ For example, < code > Nativeint.div a b</ code > will be translated into < code > a /b | 0</ code > .</ p >
3155
3145
</ div >
3156
3146
< div class ="admonitionblock warning ">
3157
3147
< table >
@@ -3160,16 +3150,17 @@ <h4 id="__code_int_code"><a class="anchor" href="#__code_int_code"></a><code>int
3160
3150
< div class ="title "> Warning</ div >
3161
3151
</ td >
3162
3152
< td class ="content ">
3163
- < code > Nativeint.shift_right_logical x 0</ code > is different from
3153
+ < div class ="paragraph ">
3154
+ < p > < code > Nativeint.shift_right_logical x 0</ code > is different from
3164
3155
< code > Int32.shift_right_local x 0</ code > . The former is literally translated into
3165
3156
< code > x >>> 0</ code > (translated into an unsigned int), while the latter is
3166
- < code > x | 0</ code > .
3157
+ < code > x | 0</ code > .</ p >
3158
+ </ div >
3167
3159
</ td >
3168
3160
</ tr >
3169
3161
</ table >
3170
3162
</ div >
3171
3163
</ div >
3172
- </ div >
3173
3164
< div class ="sect2 ">
3174
3165
< h3 id ="_printf_printf "> < a class ="anchor " href ="#_printf_printf "> </ a > Printf.printf</ h3 >
3175
3166
< div class ="paragraph ">
0 commit comments