summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathis Rosenhauer <rosenhauer@dkrz.de>2016-01-28 13:39:24 +0100
committerMathis Rosenhauer <rosenhauer@dkrz.de>2016-01-28 13:39:24 +0100
commit8ef1c38574f1d07ea628fc3f4b7cb65c6a89e78c (patch)
tree24586d861d0398c9922e17587fb45b6bc1f79a7c
parent385918790183a790cf670cc9ed48134f1bc82518 (diff)
downloadlibaec-8ef1c38574f1d07ea628fc3f4b7cb65c6a89e78c.tar.gz
libaec-8ef1c38574f1d07ea628fc3f4b7cb65c6a89e78c.tar.bz2
libaec-8ef1c38574f1d07ea628fc3f4b7cb65c6a89e78c.zip
Type changes
-rw-r--r--src/decode.c4
-rw-r--r--src/encode.c10
2 files changed, 7 insertions, 7 deletions
diff --git a/src/decode.c b/src/decode.c
index b4b38e7..1a74c83 100644
--- a/src/decode.c
+++ b/src/decode.c
@@ -458,7 +458,7 @@ static int m_split_fs(struct aec_stream *strm)
static int m_split(struct aec_stream *strm)
{
- uint32_t i, k;
+ size_t i, k;
struct internal_state *state = strm->state;
if (BUFFERSPACE(strm)) {
@@ -654,7 +654,7 @@ static int m_uncomp_copy(struct aec_stream *strm)
static int m_uncomp(struct aec_stream *strm)
{
- uint32_t i;
+ size_t i;
struct internal_state *state = strm->state;
if (BUFFERSPACE(strm)) {
diff --git a/src/encode.c b/src/encode.c
index 43a0b35..03689e1 100644
--- a/src/encode.c
+++ b/src/encode.c
@@ -117,7 +117,7 @@ static inline void copy64(uint8_t *dst, uint64_t src)
static inline void emitblock_fs(struct aec_stream *strm, int k, int ref)
{
- uint32_t i;
+ size_t i;
uint32_t used; /* used bits in 64 bit accumulator */
uint64_t acc; /* accumulator */
struct internal_state *state = strm->state;
@@ -316,7 +316,7 @@ static inline uint64_t block_fs(struct aec_stream *strm, int k)
Sum FS of all samples in block for given splitting position.
*/
- uint32_t i;
+ size_t i;
uint64_t fs = 0;
struct internal_state *state = strm->state;
@@ -417,7 +417,7 @@ static uint32_t assess_se_option(struct aec_stream *strm)
If length is above limit just return UINT32_MAX.
*/
- uint32_t i;
+ size_t i;
uint64_t len, d;
struct internal_state *state = strm->state;
uint32_t *block = state->block;
@@ -546,7 +546,7 @@ static int m_encode_uncomp(struct aec_stream *strm)
static int m_encode_se(struct aec_stream *strm)
{
- uint32_t i;
+ size_t i;
uint32_t d;
struct internal_state *state = strm->state;
@@ -620,7 +620,7 @@ static int m_check_zero_block(struct aec_stream *strm)
end of a segment or RSI.
*/
- uint32_t i;
+ size_t i;
struct internal_state *state = strm->state;
uint32_t *p = state->block;