Skip to content

Commit

Permalink
Added the 'const' qualifier to non SSE2 functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Francesc Alted committed Dec 21, 2014
1 parent 29cec23 commit ebca8a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions blosc/shuffle.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

/* Shuffle a block. This can never fail. */
static void _shuffle(size_t bytesoftype, size_t blocksize,
const uint8_t* _src, uint8_t* _dest)
const uint8_t* _src, uint8_t* _dest)
{
size_t i, j, neblock, leftover;

Expand Down Expand Up @@ -490,12 +490,12 @@ void unshuffle(size_t bytesoftype, size_t blocksize,
#else /* no __SSE2__ available */

void shuffle(size_t bytesoftype, size_t blocksize,
uint8_t* _src, uint8_t* _dest) {
const uint8_t* _src, uint8_t* _dest) {
_shuffle(bytesoftype, blocksize, _src, _dest);
}

void unshuffle(size_t bytesoftype, size_t blocksize,
uint8_t* _src, uint8_t* _dest) {
const uint8_t* _src, uint8_t* _dest) {
_unshuffle(bytesoftype, blocksize, _src, _dest);
}

Expand Down

0 comments on commit ebca8a2

Please sign in to comment.