Skip to content

Commit 8fc5bea

Browse files
committed
What is safety
1 parent 301e0ac commit 8fc5bea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/day17.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ pub fn part1(s: &str) -> &'static str {
4545
let mut out_ptr = result_ptr;
4646
let result_ptr = result_ptr.cast_const();
4747

48+
std::hint::assert_unchecked(a != 0);
4849
while a != 0 {
4950
let b = a % 8;
5051
let b = b ^ x;

0 commit comments

Comments
 (0)