diff options
| author | Vicent Marti <tanoku@gmail.com> | 2011-03-15 19:46:38 +0200 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2011-03-15 19:46:38 +0200 |
| commit | 434bedcda0a7edb4fcc2dda6eb3df0310c2d0774 (patch) | |
| tree | d0753073406974cbfbb0d371b5962925a6e10ea1 /deps/zlib/deflate.h | |
| parent | 7ad96e51ca81974c417914edbc81a63e390c4301 (diff) | |
| download | libgit2-434bedcda0a7edb4fcc2dda6eb3df0310c2d0774.tar.gz | |
Fix compilation warnings in ZLib (MSVC)
Yes, we are changing the Zlib code. This is dangerous and uncool.
Fortunately, these are just some implicit casts.
Diffstat (limited to 'deps/zlib/deflate.h')
| -rw-r--r-- | deps/zlib/deflate.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/deps/zlib/deflate.h b/deps/zlib/deflate.h index cbf0d1ea5..d7d26f8a9 100644 --- a/deps/zlib/deflate.h +++ b/deps/zlib/deflate.h @@ -317,15 +317,15 @@ void ZLIB_INTERNAL _tr_stored_block OF((deflate_state *s, charf *buf, #endif # define _tr_tally_lit(s, c, flush) \ - { uch cc = (c); \ + { uch cc = (uch)(c); \ s->d_buf[s->last_lit] = 0; \ s->l_buf[s->last_lit++] = cc; \ s->dyn_ltree[cc].Freq++; \ flush = (s->last_lit == s->lit_bufsize-1); \ } # define _tr_tally_dist(s, distance, length, flush) \ - { uch len = (length); \ - ush dist = (distance); \ + { uch len = (uch)(length); \ + ush dist = (ush)(distance); \ s->d_buf[s->last_lit] = dist; \ s->l_buf[s->last_lit++] = len; \ dist--; \ |
