Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
miniaudio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
miniaudio
Commits
25e0e7f0
Commit
25e0e7f0
authored
Mar 17, 2018
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some undefined behaviour.
Addresses issue #17.
parent
b4bcb313
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
mini_al.h
mini_al.h
+2
-2
No files found.
mini_al.h
View file @
25e0e7f0
...
@@ -3778,7 +3778,7 @@ static void mal_channel_mask_to_channel_map__win32(DWORD dwChannelMask, mal_uint
...
@@ -3778,7 +3778,7 @@ static void mal_channel_mask_to_channel_map__win32(DWORD dwChannelMask, mal_uint
// Just iterate over each bit.
// Just iterate over each bit.
mal_uint32
iChannel
=
0
;
mal_uint32
iChannel
=
0
;
for
(
mal_uint32
iBit
=
0
;
iBit
<
32
;
++
iBit
)
{
for
(
mal_uint32
iBit
=
0
;
iBit
<
32
;
++
iBit
)
{
DWORD
bitValue
=
(
dwChannelMask
&
(
1
<<
iBit
));
DWORD
bitValue
=
(
dwChannelMask
&
(
1
UL
<<
iBit
));
if
(
bitValue
!=
0
)
{
if
(
bitValue
!=
0
)
{
// The bit is set.
// The bit is set.
channelMap
[
iChannel
]
=
mal_channel_id_to_mal__win32
(
bitValue
);
channelMap
[
iChannel
]
=
mal_channel_id_to_mal__win32
(
bitValue
);
...
@@ -11074,7 +11074,7 @@ static void mal_channel_mask_to_channel_map__opensl(SLuint32 channelMask, mal_ui
...
@@ -11074,7 +11074,7 @@ static void mal_channel_mask_to_channel_map__opensl(SLuint32 channelMask, mal_ui
// Just iterate over each bit.
// Just iterate over each bit.
mal_uint32
iChannel
=
0
;
mal_uint32
iChannel
=
0
;
for
(
mal_uint32
iBit
=
0
;
iBit
<
32
;
++
iBit
)
{
for
(
mal_uint32
iBit
=
0
;
iBit
<
32
;
++
iBit
)
{
SLuint32
bitValue
=
(
channelMask
&
(
1
<<
iBit
));
SLuint32
bitValue
=
(
channelMask
&
(
1
UL
<<
iBit
));
if
(
bitValue
!=
0
)
{
if
(
bitValue
!=
0
)
{
// The bit is set.
// The bit is set.
channelMap
[
iChannel
]
=
mal_channel_id_to_mal__opensl
(
bitValue
);
channelMap
[
iChannel
]
=
mal_channel_id_to_mal__opensl
(
bitValue
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment