Skip to content

Commit

Permalink
fix implicit conversion for diff
Browse files Browse the repository at this point in the history
Signed-off-by: Songling Han <[email protected]>
  • Loading branch information
songlingatpan committed Sep 21, 2024
1 parent a83958b commit 369a268
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ void *OQS_MEM_aligned_alloc(size_t alignment, size_t size) {
return NULL;
}
// Store the difference so that the free function can use it
ptr[-1] = diff;
ptr[-1] = (uint8_t)diff;
return ptr;
#elif defined(OQS_HAVE_ALIGNED_ALLOC) // glibc and other implementations providing aligned_alloc
return aligned_alloc(alignment, size);
Expand Down

0 comments on commit 369a268

Please sign in to comment.