Skip to content

Commit

Permalink
Fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Jul 18, 2024
1 parent 7980c6a commit 666a544
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/src/p0008.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ pub fn p0008() -> i128 {
let slice = &string[i..(i + 13)];
let mut prod: u64 = 1;
for c in slice.bytes() {
prod *= c as u32 - '0' as u32;
prod *= (c as u32 - '0' as u32) as u64;
}
if prod > answer {
answer = prod;
Expand Down

0 comments on commit 666a544

Please sign in to comment.