Skip to content

Commit 2730618

Browse files
Avoid casting (void**) values.
Replaced with an expression that only casts (void*) values.
1 parent f2d9aea commit 2730618

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ static SECP256K1_INLINE void *manual_alloc(void** prealloc_ptr, size_t alloc_siz
141141
VERIFY_CHECK(((unsigned char*)*prealloc_ptr - (unsigned char*)base) % ALIGNMENT == 0);
142142
VERIFY_CHECK((unsigned char*)*prealloc_ptr - (unsigned char*)base + aligned_alloc_size <= max_size);
143143
ret = *prealloc_ptr;
144-
*((unsigned char**)prealloc_ptr) += aligned_alloc_size;
144+
*prealloc_ptr = (unsigned char*)*prealloc_ptr + aligned_alloc_size;
145145
return ret;
146146
}
147147

0 commit comments

Comments
 (0)