From ea013b5badf78ea16bf23edf58483c30fe1da1ce Mon Sep 17 00:00:00 2001 From: AudaciousAxiom <179637270+AudaciousAxiom@users.noreply.github.com> Date: Sat, 25 Oct 2025 10:49:46 +0200 Subject: [PATCH] feat: guarantee the binary representation of `isize` explicitly --- src/types/numeric.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types/numeric.md b/src/types/numeric.md index 73c61991c2..5b796e4179 100644 --- a/src/types/numeric.md +++ b/src/types/numeric.md @@ -44,7 +44,7 @@ platform's pointer type. It can represent every memory address in the process. > For more information, see the documentation for [type cast expressions], [`std::ptr`], and [provenance][std::ptr#provenance] in particular. r[type.numeric.int.size.isize] -The `isize` type is a signed integer type with the same number of bits as the +The `isize` type is a signed two's complement integer type with the same number of bits as the platform's pointer type. The theoretical upper bound on object and array size is the maximum `isize` value. This ensures that `isize` can be used to calculate differences between pointers into an object or array and can address every byte