You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
29 lines
1.2 KiB
Diff
29 lines
1.2 KiB
Diff
--- pariso/commun.cpp.orig 2018-04-02 13:49:18.000000000 +0800
|
|
+++ pariso/commun.cpp 2024-07-03 10:52:59.000000000 +0800
|
|
@@ -66,13 +66,13 @@
|
|
for (uint l = 0; l < numberFeaturePoints; ++l)
|
|
{
|
|
lastRandom = lcgRandom(lastRandom);
|
|
- randomDiff[0] = (float)lastRandom / 0x100000000;
|
|
+ randomDiff[0] = (float)lastRandom / 0x100000000ll;
|
|
|
|
lastRandom = lcgRandom(lastRandom);
|
|
- randomDiff[1] = (float)lastRandom / 0x100000000;
|
|
+ randomDiff[1] = (float)lastRandom / 0x100000000ll;
|
|
|
|
lastRandom = lcgRandom(lastRandom);
|
|
- randomDiff[2] = (float)lastRandom / 0x100000000;
|
|
+ randomDiff[2] = (float)lastRandom / 0x100000000ll;
|
|
|
|
featurePoint[0] = randomDiff[0] + (float)cubeX;
|
|
featurePoint[1] = randomDiff[1] + (float)cubeY;
|
|
@@ -151,7 +151,7 @@
|
|
|
|
int CellNoise::lcgRandom(int lastValue)
|
|
{
|
|
- return (int)((1103515245u * lastValue + 12345u) % 0x100000000u);
|
|
+ return (int)((1103515245u * lastValue + 12345u) % 0x100000000ull);
|
|
}
|
|
|
|
int CellNoise::hash(int i, int j, int k)
|