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:
parent
182fa9bd76
commit
d83739a980
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue