Skip to content

Commit

Permalink
fix number promote for u32 to int (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyi98 authored Dec 4, 2024
1 parent cee1c00 commit 75f16da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/modules/dev/hda/stream.v
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ fn (mut s HDAStream) change_volume(percentage int) {
if one_percentage == 0 {
one_percentage = 1
}
mut value := one_percentage * percentage
mut value := one_percentage * u32(percentage)
if value > max_val {
value = max_val
}
Expand Down

0 comments on commit 75f16da

Please sign in to comment.