Clarify the intention of strange condition

It may not be obvious why the condition in `push_bytes` module checks
for negation of 16 and 32 bit architectures rather than 64 bit. This
adds a comment about it being conservative.
This commit is contained in:
Martin Habovstiak 2023-02-20 19:40:19 +01:00
parent 182fa9bd76
commit d83739a980
1 changed files with 2 additions and 0 deletions

View File

@ -435,6 +435,8 @@ mod error {
}
}
// we have 64 bits in mind, but even for esoteric sizes, this code is correct, since it's the
// conservative one that checks for errors
#[cfg(not(any(target_pointer_width = "16", target_pointer_width = "32")))]
mod error {
use core::fmt;