Skip to content

Commit f41c7c8

Browse files
committed
change inconsistent array param to pointer
The behavior is identical, but the former syntax suggests guarantees that don't actually exist.
1 parent 05bfab6 commit f41c7c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/scalar_4x64_impl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ static void secp256k1_scalar_reduce_512(secp256k1_scalar *r, const uint64_t *l)
681681
secp256k1_scalar_reduce(r, c + secp256k1_scalar_check_overflow(r));
682682
}
683683

684-
static void secp256k1_scalar_mul_512(uint64_t l[8], const secp256k1_scalar *a, const secp256k1_scalar *b) {
684+
static void secp256k1_scalar_mul_512(uint64_t *l8, const secp256k1_scalar *a, const secp256k1_scalar *b) {
685685
#ifdef USE_ASM_X86_64
686686
const uint64_t *pb = b->d;
687687
__asm__ __volatile__(
@@ -812,7 +812,7 @@ static void secp256k1_scalar_mul_512(uint64_t l[8], const secp256k1_scalar *a, c
812812
/* Extract l7 */
813813
"movq %%r8, 56(%%rsi)\n"
814814
: "+d"(pb)
815-
: "S"(l), "D"(a->d)
815+
: "S"(l8), "D"(a->d)
816816
: "rax", "rbx", "rcx", "r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15", "cc", "memory");
817817
#else
818818
/* 160 bit accumulator. */

0 commit comments

Comments
 (0)