diff options
author | Mika Lindqvist <postmaster@raasu.org> | 2017-02-14 22:10:02 +0200 |
---|---|---|
committer | Hans Kristian Rosbach <hk-git@circlestorm.org> | 2017-02-16 11:20:27 +0100 |
commit | bcab6edb16782a404779a9937c4f646ccda04af6 (patch) | |
tree | b8f7663fc871acc4f0b3a60a54e033340bb3eeeb /deflate_p.h | |
parent | 07baa6200529c489baa40031285ada969e5d669f (diff) |
Type cleanup...
* uInt -> unsigned int
* ulg -> unsigned long
Diffstat (limited to 'deflate_p.h')
-rw-r--r-- | deflate_p.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/deflate_p.h b/deflate_p.h index 3550818..a446544 100644 --- a/deflate_p.h +++ b/deflate_p.h @@ -33,12 +33,12 @@ void flush_pending(z_stream *strm); */ #ifdef X86_SSE4_2_CRC_HASH -extern Pos insert_string_sse(deflate_state *const s, const Pos str, uInt count); +extern Pos insert_string_sse(deflate_state *const s, const Pos str, unsigned int count); #endif -static inline Pos insert_string_c(deflate_state *const s, const Pos str, uInt count) { +static inline Pos insert_string_c(deflate_state *const s, const Pos str, unsigned int count) { Pos ret = 0; - uInt idx; + unsigned int idx; for (idx = 0; idx < count; idx++) { UPDATE_HASH(s, s->ins_h, str+idx); @@ -51,7 +51,7 @@ static inline Pos insert_string_c(deflate_state *const s, const Pos str, uInt co return ret; } -static inline Pos insert_string(deflate_state *const s, const Pos str, uInt count) { +static inline Pos insert_string(deflate_state *const s, const Pos str, unsigned int count) { #ifdef X86_SSE4_2_CRC_HASH if (x86_cpu_has_sse42) return insert_string_sse(s, str, count); @@ -67,7 +67,7 @@ static inline Pos insert_string(deflate_state *const s, const Pos str, uInt coun _tr_flush_block(s, (s->block_start >= 0L ? \ (char *)&s->window[(unsigned)s->block_start] : \ NULL), \ - (ulg)((long)s->strstart - s->block_start), \ + (unsigned long)((long)s->strstart - s->block_start), \ (last)); \ s->block_start = s->strstart; \ flush_pending(s->strm); \ |