Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
af76267a
Commit
af76267a
authored
Mar 28, 2022
by
Mark Adler
Committed by
Edward Thomson
Jul 12, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zlib: Silence some warnings from Visual Studio C.
parent
39ba0ee6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
deps/zlib/deflate.h
+2
-2
deps/zlib/trees.c
+3
-3
No files found.
deps/zlib/deflate.h
View file @
af76267a
...
@@ -329,8 +329,8 @@ void ZLIB_INTERNAL _tr_stored_block OF((deflate_state *s, charf *buf,
...
@@ -329,8 +329,8 @@ void ZLIB_INTERNAL _tr_stored_block OF((deflate_state *s, charf *buf,
# define _tr_tally_dist(s, distance, length, flush) \
# define _tr_tally_dist(s, distance, length, flush) \
{ uch len = (uch)(length); \
{ uch len = (uch)(length); \
ush dist = (ush)(distance); \
ush dist = (ush)(distance); \
s->sym_buf[s->sym_next++] = dist; \
s->sym_buf[s->sym_next++] =
(uch)
dist; \
s->sym_buf[s->sym_next++] =
dist >> 8
; \
s->sym_buf[s->sym_next++] =
(uch)(dist >> 8)
; \
s->sym_buf[s->sym_next++] = len; \
s->sym_buf[s->sym_next++] = len; \
dist--; \
dist--; \
s->dyn_ltree[_length_code[len]+LITERALS+1].Freq++; \
s->dyn_ltree[_length_code[len]+LITERALS+1].Freq++; \
...
...
deps/zlib/trees.c
View file @
af76267a
...
@@ -1017,9 +1017,9 @@ int ZLIB_INTERNAL _tr_tally (s, dist, lc)
...
@@ -1017,9 +1017,9 @@ int ZLIB_INTERNAL _tr_tally (s, dist, lc)
unsigned
dist
;
/* distance of matched string */
unsigned
dist
;
/* distance of matched string */
unsigned
lc
;
/* match length-MIN_MATCH or unmatched char (if dist==0) */
unsigned
lc
;
/* match length-MIN_MATCH or unmatched char (if dist==0) */
{
{
s
->
sym_buf
[
s
->
sym_next
++
]
=
dist
;
s
->
sym_buf
[
s
->
sym_next
++
]
=
(
uch
)
dist
;
s
->
sym_buf
[
s
->
sym_next
++
]
=
dist
>>
8
;
s
->
sym_buf
[
s
->
sym_next
++
]
=
(
uch
)(
dist
>>
8
)
;
s
->
sym_buf
[
s
->
sym_next
++
]
=
lc
;
s
->
sym_buf
[
s
->
sym_next
++
]
=
(
uch
)
lc
;
if
(
dist
==
0
)
{
if
(
dist
==
0
)
{
/* lc is the unmatched char */
/* lc is the unmatched char */
s
->
dyn_ltree
[
lc
].
Freq
++
;
s
->
dyn_ltree
[
lc
].
Freq
++
;
...
...
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