Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stefan Strogin
flac
Commits
3982865e
Commit
3982865e
authored
Aug 30, 2015
by
Erik de Castro Lopo
Browse files
libFLAC/bitwriter.c: Fix undefined behaviour
parent
1b8af6bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libFLAC/bitwriter.c
View file @
3982865e
...
...
@@ -184,7 +184,7 @@ void FLAC__bitwriter_dump(const FLAC__BitWriter *bw, FILE *out)
for
(
i
=
0
;
i
<
bw
->
words
;
i
++
)
{
fprintf
(
out
,
"%08X: "
,
i
);
for
(
j
=
0
;
j
<
FLAC__BITS_PER_WORD
;
j
++
)
fprintf
(
out
,
"%01u"
,
bw
->
buffer
[
i
]
&
(
1
<<
(
FLAC__BITS_PER_WORD
-
j
-
1
))
?
1
:
0
);
fprintf
(
out
,
"%01u"
,
bw
->
buffer
[
i
]
&
(
1
u
<<
(
FLAC__BITS_PER_WORD
-
j
-
1
))
?
1
:
0
);
fprintf
(
out
,
"
\n
"
);
}
if
(
bw
->
bits
>
0
)
{
...
...
Write
Preview
Supports
Markdown
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