aboutsummaryrefslogtreecommitdiffstats
path: root/src/checksum/adler32
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-10-12 23:29:55 +0000
committerlloyd <[email protected]>2010-10-12 23:29:55 +0000
commit2af9ba577730f071eef44b3ba492c3bfad0a8ec6 (patch)
tree92a4c4e973756225d42bb99a99110b2669be7299 /src/checksum/adler32
parent97e8d6086171772cd5e45bcf2f5b1ea1e38e6bf5 (diff)
Use size_t for BufferedComputation::add_data
Diffstat (limited to 'src/checksum/adler32')
-rw-r--r--src/checksum/adler32/adler32.cpp4
-rw-r--r--src/checksum/adler32/adler32.h2
2 files changed, 3 insertions, 3 deletions
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;
};