Skip to content

Commit

Permalink
Update logos-codegen/src/graph/mod.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Jérome Eertmans <[email protected]>
  • Loading branch information
0x2a-42 and jeertmans authored Oct 16, 2024
1 parent aab117c commit 1e15faf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion logos-codegen/src/graph/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ impl Hash for NodeId {
fn hash<H: Hasher>(&self, state: &mut H) {
// Always use little-endian byte order for hashing to avoid
// different code generation on big-endian platforms due to
// iteration over a HashMap
// iteration over a HashMap,
// see https://github.com/maciejhirsz/logos/issues/427.
state.write(&self.0.get().to_le_bytes())
}
}
Expand Down

0 comments on commit 1e15faf

Please sign in to comment.