File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -38,10 +38,9 @@ They have the same layout as the [pointer types] for which the pointee is
38
38
` Sized ` , and are layout compatible with C's ` uintptr_t ` and ` intptr_t ` types.
39
39
40
40
> ** Note** : C99 [ 7.18.2.4] ( https://port70.net/~nsz/c/c99/n1256.html#7.18.2.4 )
41
- > requires ` uintptr_t ` and ` intptr_t ` to be at least 16-bit wide. That is, on
42
- > all platforms that we currently support, which have a C platform,
43
- > ` isize ` /` usize ` are at least 16-bit wide. Currently, ` libcore ` unconditionally
44
- > provides impls of ` From<i16> ` /` From<u16> ` for ` isize ` /` usize ` .
41
+ > requires ` uintptr_t ` and ` intptr_t ` to be at least 16-bit wide. All
42
+ > platforms we currently support have a C platform, and as a consequence,
43
+ > ` isize ` /` usize ` are at least 16-bit wide for all of them.
45
44
46
45
> ** Note** : Rust's ` usize ` and C's ` unsigned ` types are ** not** equivalent. C's
47
46
> ` unsigned ` is at least as large as a short, allowed to have padding bits, etc.
You can’t perform that action at this time.
0 commit comments