mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-19 18:15:18 -07:00
1L << 51 is an undefined behavior. Use 1 as a int64_t value.
This commit is contained in:
parent
aa7291fcd2
commit
f62f5ceb04
@ -42,7 +42,7 @@ static void fsum(felem *output, const felem *in) {
|
||||
* (note the order of the arguments!)
|
||||
*/
|
||||
static void fdifference_backwards(felem *ioutput, const felem *iin) {
|
||||
static const int64_t twotothe51 = (1l << 51);
|
||||
static const int64_t twotothe51 = ((int64_t) 1) << 51;
|
||||
const int64_t *in = (const int64_t *) iin;
|
||||
int64_t *out = (int64_t *) ioutput;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user