Commit 80c0b96e authored by Adam Reichold's avatar Adam Reichold
Browse files

Use the full precision when storing temporal network node identifiers as some scenarios require it.

parent 59d92cd6
Pipeline #57209 passed with stage
in 7 minutes and 44 seconds
...@@ -11,8 +11,6 @@ fn main() { ...@@ -11,8 +11,6 @@ fn main() {
for temporal_network in worlds.iter().map(|world| &world.temporal_network) { for temporal_network in worlds.iter().map(|world| &world.temporal_network) {
for (tick, source, destination) in temporal_network { for (tick, source, destination) in temporal_network {
let tick = tick.as_seconds() as u32; let tick = tick.as_seconds() as u32;
let source = *source as u16;
let destination = *destination as u16;
stdout.write_all(&tick.to_ne_bytes()).unwrap(); stdout.write_all(&tick.to_ne_bytes()).unwrap();
stdout.write_all(&source.to_ne_bytes()).unwrap(); stdout.write_all(&source.to_ne_bytes()).unwrap();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment