summaryrefslogtreecommitdiff
path: root/alligator_render/examples/bunnymark.rs
diff options
context:
space:
mode:
authorMicha White <botahamec@outlook.com>2023-02-04 11:41:08 -0500
committerMicha White <botahamec@outlook.com>2023-02-04 11:41:08 -0500
commit3201cf932ac9d6568b57433e47e7aaf68453b568 (patch)
treeacdd45e9098e16dd3855d0f913ac65f833b35ae7 /alligator_render/examples/bunnymark.rs
parent7131aaa8575cab2b9fccf263ba8eeb9dcddf9c2b (diff)
Fix runtime error in debug mode for bunnymark
Diffstat (limited to 'alligator_render/examples/bunnymark.rs')
-rw-r--r--alligator_render/examples/bunnymark.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/alligator_render/examples/bunnymark.rs b/alligator_render/examples/bunnymark.rs
index b17b1d5..5530ef3 100644
--- a/alligator_render/examples/bunnymark.rs
+++ b/alligator_render/examples/bunnymark.rs
@@ -15,7 +15,7 @@ fn xorshift_plus(seed: &mut [u64; 2]) -> u64 {
seed[0] = s;
seed[1] = t;
- t + s
+ t.wrapping_add(s)
}
#[derive(Debug)]