fixed int64 suffixes when sizeof(long)==4

lean
Avril 5 years ago
parent 82be2ea812
commit 04cb4c0b0b
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -28,7 +28,7 @@ static void* _ar_memory_get(struct array* this, long i)
return &this->data[i*this->element];
}
static const void _ar_memory_set(struct array* this, long i, const void* item)
static void _ar_memory_set(struct array* this, long i, const void* item)
{
if(i<0 || i>= this->size) return;

@ -77,7 +77,7 @@ void _seed(const void* from)
double _sample()
{
return (next() & ((1L << 53) - 1)) * (1.00 / (1L << 53));
return (next() & ((INT64_C(1) << 53) - 1)) * (1.00 / (INT64_C(1) << 53));
}
RNG_IMPL_DEFINITION(xoroshiro128plus)

Loading…
Cancel
Save