Commit fc5b09b7 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Fix checksumming of zaxis vct.

parent 6b6e6f7c
...@@ -1776,7 +1776,7 @@ zaxisUnpack(char * unpackBuffer, int unpackBufferSize, ...@@ -1776,7 +1776,7 @@ zaxisUnpack(char * unpackBuffer, int unpackBufferSize,
zaxisP->vct, size, DATATYPE_FLT64, context); zaxisP->vct, size, DATATYPE_FLT64, context);
serializeUnpack(unpackBuffer, unpackBufferSize, unpackBufferPos, serializeUnpack(unpackBuffer, unpackBufferSize, unpackBufferPos,
&d, 1, DATATYPE_UINT32, context); &d, 1, DATATYPE_UINT32, context);
xassert(cdiCheckSum(DATATYPE_FLT, size, zaxisP->vct) == d); xassert(cdiCheckSum(DATATYPE_FLT64, size, zaxisP->vct) == d);
} }
serializeUnpack(unpackBuffer, unpackBufferSize, unpackBufferPos, serializeUnpack(unpackBuffer, unpackBufferSize, unpackBufferPos,
...@@ -1868,7 +1868,7 @@ zaxisPack(void * voidP, void * packBuffer, int packBufferSize, ...@@ -1868,7 +1868,7 @@ zaxisPack(void * voidP, void * packBuffer, int packBufferSize,
serializePack(zaxisP->vct, zaxisP->vctsize, DATATYPE_FLT64, serializePack(zaxisP->vct, zaxisP->vctsize, DATATYPE_FLT64,
packBuffer, packBufferSize, packBufferPos, context); packBuffer, packBufferSize, packBufferPos, context);
d = cdiCheckSum(DATATYPE_FLT, zaxisP->vctsize, zaxisP->vct); d = cdiCheckSum(DATATYPE_FLT64, zaxisP->vctsize, zaxisP->vct);
serializePack(&d, 1, DATATYPE_UINT32, serializePack(&d, 1, DATATYPE_UINT32,
packBuffer, packBufferSize, packBufferPos, context); packBuffer, packBufferSize, packBufferPos, context);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment