Skip to content

Commit

Permalink
Fixed compiler warnings on Windows in release mode (#349)
Browse files Browse the repository at this point in the history
This pull request attempts to fix some compiler warnings on Windows when compiled in Release mode.

```
"zlib-ng\ALL_BUILD.vcxproj" (default target) (1) ->
"zlib-ng\zlibstatic.vcxproj" (default target) (6) ->
  zlib-ng\deflate.c(1626): warning C4244: '=': conversion from 'uint16_t' to 'unsigned cha
r', possible loss of data [zlib-ng\zlibstatic.vcxproj]
  zlib-ng\deflate_fast.c(61): warning C4244: '=': conversion from 'uint16_t' to 'unsigned
char', possible loss of data [zlib-ng\zlibstatic.vcxproj]
  zlib-ng\deflate_slow.c(89): warning C4244: '=': conversion from 'uint16_t' to 'unsigned
char', possible loss of data [zlib-ng\zlibstatic.vcxproj]
```
  • Loading branch information
nmoinvaz authored and Dead2 committed Jun 4, 2019
1 parent ef3edcb commit d229a14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deflate.h
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ void ZLIB_INTERNAL flush_pending(PREFIX3(streamp) strm);
#else
# define _tr_tally_lit(s, c, flush) flush = _tr_tally(s, 0, c)
# define _tr_tally_dist(s, distance, length, flush) \
flush = _tr_tally(s, distance, length)
flush = _tr_tally(s, (unsigned)(distance), (unsigned)(length))
#endif

/* ===========================================================================
Expand Down

0 comments on commit d229a14

Please sign in to comment.