Skip to content

Commit c7fe3cf

Browse files
committed
Use mem const-correctly in prn_verify
1 parent b80a54c commit c7fe3cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/fun_bag.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ static int prn_verify(const void * mem, uint16_t seed, size_t len)
5858
{
5959
size_t i;
6060
uint16_t state = seed;
61-
uint8_t * m = (uint8_t *) mem;
61+
const uint8_t * m = (const uint8_t *) mem;
6262
bool matches = true;
6363

6464
/* Check all of the bytes, even if we find a match sooner. This tests that

0 commit comments

Comments
 (0)