mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-05-31 06:45:10 +00:00
LONG64 -> int64_t
This commit is contained in:
@@ -418,7 +418,7 @@ void SparseLightStorage::addNewPlane(int y) {
|
||||
// lastDataAndCount, and will return the value present just before the
|
||||
// write took place
|
||||
int64_t lastDataAndCount2 = InterlockedCompareExchangeRelease64(
|
||||
(LONG64*)&dataAndCount, newDataAndCount, lastDataAndCount);
|
||||
(int64_t*)&dataAndCount, newDataAndCount, lastDataAndCount);
|
||||
|
||||
if (lastDataAndCount2 == lastDataAndCount) {
|
||||
success = true;
|
||||
@@ -492,7 +492,7 @@ void SparseLightStorage::updateDataAndCount(int64_t newDataAndCount) {
|
||||
// lastDataAndCount, and will return the value present just before the
|
||||
// write took place
|
||||
int64_t lastDataAndCount2 = InterlockedCompareExchangeRelease64(
|
||||
(LONG64*)&dataAndCount, newDataAndCount, lastDataAndCount);
|
||||
(int64_t*)&dataAndCount, newDataAndCount, lastDataAndCount);
|
||||
|
||||
if (lastDataAndCount2 == lastDataAndCount) {
|
||||
success = true;
|
||||
@@ -574,7 +574,7 @@ int SparseLightStorage::compress() {
|
||||
// lastDataAndCount, and will return the value present just before the
|
||||
// write took place
|
||||
int64_t lastDataAndCount2 = InterlockedCompareExchangeRelease64(
|
||||
(LONG64*)&dataAndCount, newDataAndCount, lastDataAndCount);
|
||||
(int64_t*)&dataAndCount, newDataAndCount, lastDataAndCount);
|
||||
|
||||
if (lastDataAndCount2 != lastDataAndCount) {
|
||||
// Failed to write. Don't bother trying again... being very
|
||||
|
||||
Reference in New Issue
Block a user