We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ecc6ce commit ada6361Copy full SHA for ada6361
src/scratch_impl.h
@@ -11,7 +11,7 @@
11
#include "scratch.h"
12
13
static secp256k1_scratch* secp256k1_scratch_create(const secp256k1_callback* error_callback, size_t size) {
14
- const size_t base_alloc = ((sizeof(secp256k1_scratch) + ALIGNMENT - 1) / ALIGNMENT) * ALIGNMENT;
+ const size_t base_alloc = ROUND_TO_ALIGN(sizeof(secp256k1_scratch));
15
void *alloc = checked_malloc(error_callback, base_alloc + size);
16
secp256k1_scratch* ret = (secp256k1_scratch *)alloc;
17
if (ret != NULL) {
0 commit comments