From 2af9ba577730f071eef44b3ba492c3bfad0a8ec6 Mon Sep 17 00:00:00 2001 From: lloyd Date: Tue, 12 Oct 2010 23:29:55 +0000 Subject: Use size_t for BufferedComputation::add_data --- src/checksum/adler32/adler32.cpp | 4 ++-- src/checksum/adler32/adler32.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/checksum/adler32') diff --git a/src/checksum/adler32/adler32.cpp b/src/checksum/adler32/adler32.cpp index 09e42b8db..62589733f 100644 --- a/src/checksum/adler32/adler32.cpp +++ b/src/checksum/adler32/adler32.cpp @@ -55,9 +55,9 @@ void adler32_update(const byte input[], size_t length, /* * Update an Adler32 Checksum */ -void Adler32::add_data(const byte input[], u32bit length) +void Adler32::add_data(const byte input[], size_t length) { - const u32bit PROCESS_AMOUNT = 5552; + const size_t PROCESS_AMOUNT = 5552; while(length >= PROCESS_AMOUNT) { diff --git a/src/checksum/adler32/adler32.h b/src/checksum/adler32/adler32.h index 4993e601b..3a2441ad3 100644 --- a/src/checksum/adler32/adler32.h +++ b/src/checksum/adler32/adler32.h @@ -24,7 +24,7 @@ class BOTAN_DLL Adler32 : public HashFunction Adler32() : HashFunction(4) { clear(); } ~Adler32() { clear(); } private: - void add_data(const byte[], u32bit); + void add_data(const byte[], size_t); void final_result(byte[]); u16bit S1, S2; }; -- cgit v1.2.3