Skip to content

Commit

Permalink
Remove another unnecessary cast
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Jul 23, 2024
1 parent 5fd4f62 commit 869e296
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .codecov.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ component_management:
name: C # this is a display name, and can be changed freely
paths:
- c/**
- component_id: module_cplusplus
name: C++
paths:
- cplusplus/**
- component_id: module_csharp
name: C#
paths:
Expand Down
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) as u64;
prod *= (c - b'0') as u64;
}
if prod > answer {
answer = prod;
Expand Down

0 comments on commit 869e296

Please sign in to comment.