mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-30 16:10:44 +08:00
Make debugcrc32
signature match that of NC_crc32
(which it wraps)
This commit is contained in:
parent
dc054494ed
commit
0b98970677
@ -36,7 +36,7 @@ static unsigned NCD4_computeChecksum(NCD4meta* meta, NCD4node* topvar);
|
||||
/* Macro define procedures */
|
||||
|
||||
#ifdef D4DUMPCSUM
|
||||
static unsigned int debugcrc32(unsigned int crc, const void *buf, size_t size)
|
||||
static unsigned int debugcrc32(unsigned int crc, const void *buf, unsigned int size)
|
||||
{
|
||||
int i;
|
||||
fprintf(stderr,"crc32: ");
|
||||
@ -443,7 +443,7 @@ NCD4_computeChecksum(NCD4meta* meta, NCD4node* topvar)
|
||||
ASSERT((ISTOPLEVEL(topvar)));
|
||||
|
||||
#ifndef HYRAXCHECKSUM
|
||||
csum = CRC32(csum,topvar->data.dap4data.memory,topvar->data.dap4data.size);
|
||||
csum = CRC32(csum,topvar->data.dap4data.memory, (unsigned int)topvar->data.dap4data.size);
|
||||
#else
|
||||
if(topvar->basetype->subsort != NC_STRING) {
|
||||
csum = CRC32(csum,topvar->data.dap4data.memory,topvar->data.dap4data.size);
|
||||
|
Loading…
Reference in New Issue
Block a user