mirror of
https://github.com/servo/servo
synced 2026-04-26 01:25:32 +02:00
Compare commits
1 Commits
github-act
...
jdm-patch-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b6434510ce |
@@ -487,7 +487,11 @@ impl BaseAudioContextMethods for BaseAudioContext {
|
|||||||
let channel = match channels.entry(channel_pos_mask) {
|
let channel = match channels.entry(channel_pos_mask) {
|
||||||
Entry::Occupied(entry) => *entry.get(),
|
Entry::Occupied(entry) => *entry.get(),
|
||||||
Entry::Vacant(entry) => {
|
Entry::Vacant(entry) => {
|
||||||
let x = (channel_pos_mask as f32).log2() as usize;
|
let x = if channel_pos_mask != 0 {
|
||||||
|
(channel_pos_mask as f32).log2() as usize
|
||||||
|
} else {
|
||||||
|
0
|
||||||
|
};
|
||||||
*entry.insert(x)
|
*entry.insert(x)
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user