You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When building for 32-bit architectures, impl_hash! will cause a compilation failure:
error[E0308]: mismatched types
--> ...\rigetti-pyo3-a2bd858c711b766b\d77377e\src\traits.rs:66:38
|
58 | macro_rules! impl_hash {
| ---------------------- in this expansion of `impl_hash!`
...
66 | isize::from_ne_bytes(bytes)
| -------------------- ^^^^^ expected an array with a fixed size of 4 elements, found one with 8 elements
| |
| arguments to this function are incorrect
This is because bytes is the stored result of Hasher::finish, an i64, which can't be used to build an isize on 32-bit systems.
The text was updated successfully, but these errors were encountered:
When building for 32-bit architectures,
impl_hash!
will cause a compilation failure:This is because
bytes
is the stored result ofHasher::finish
, ani64
, which can't be used to build anisize
on 32-bit systems.The text was updated successfully, but these errors were encountered: