Make debugcrc32 signature match that of NC_crc32 (which it wraps)

This commit is contained in:
Peter Hill 2024-03-25 10:34:40 +00:00
parent dc054494ed
commit 0b98970677
No known key found for this signature in database
GPG Key ID: 0C6B9742E72848EE

View File

@ -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);