CODARcode / MGARD

MGARD: MultiGrid Adaptive Reduction of Data
Apache License 2.0
37 stars 25 forks source link

Fix pointer type mismatch with decompress_memory_z #159

Closed kmorel closed 3 years ago

kmorel commented 3 years ago

The decompress_memory_z function took an int* for the array of its destination. However, there were instances in the code that were trying to give it an unsigned char* (probably because that is the destination array type for the sister function decompress_memory_zstd).

Change the destination argument to unsigned char*. This makes the array type more consistent between the two decompress_memory function. It also matches better with the dstLen argument, which measures the length of the array in bytes.