Skip to content

Commit

Permalink
fix: use non-const argument
Browse files Browse the repository at this point in the history
  • Loading branch information
s0l0ist authored and kimlaine committed Aug 28, 2020
1 parent b0a56c6 commit 16b76c5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions native/src/seal/util/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace seal
{
namespace util
{
void seal_memzero(void *const data, const size_t size)
void seal_memzero(void *const data, size_t size)
{
#if SEAL_SYSTEM == SEAL_SYSTEM_WINDOWS
SecureZeroMemory(data, size);
Expand All @@ -33,8 +33,7 @@ namespace seal
explicit_memset(data, 0, size);
#else
volatile SEAL_BYTE *data_ptr = reinterpret_cast<SEAL_BYTE *>(data);
size_t i = size;
while (i--)
while (size--)
{
*data_ptr++ = static_cast<SEAL_BYTE>(0);
}
Expand Down

0 comments on commit 16b76c5

Please sign in to comment.