mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-19 10:05:05 -07:00
Don't hardcode type sizes
This commit is contained in:
parent
d2f57c0124
commit
1074191f87
@ -287,7 +287,7 @@ fe25519_cswap(fe25519 f, fe25519 g, unsigned int b)
|
||||
static inline void
|
||||
fe25519_copy(fe25519 h, const fe25519 f)
|
||||
{
|
||||
memcpy(h, f, 10 * 4);
|
||||
memcpy(h, f, 10 * sizeof h[0]);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -231,7 +231,7 @@ fe25519_cswap(fe25519 f, fe25519 g, unsigned int b)
|
||||
static inline void
|
||||
fe25519_copy(fe25519 h, const fe25519 f)
|
||||
{
|
||||
memcpy(h, f, 5 * 8);
|
||||
memcpy(h, f, 5 * sizeof h[0]);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user