aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Alc/alcontext.h2
-rw-r--r--OpenAL32/Include/alMain.h6
2 files changed, 4 insertions, 4 deletions
diff --git a/Alc/alcontext.h b/Alc/alcontext.h
index c9bdddc7..b1bbd1af 100644
--- a/Alc/alcontext.h
+++ b/Alc/alcontext.h
@@ -42,7 +42,7 @@ enum class DistanceModel {
};
struct SourceSubList {
- uint64_t FreeMask{0u};
+ uint64_t FreeMask{~uint64_t{}};
ALsource *Sources{nullptr}; /* 64 */
};
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h
index 5adabb18..5ff1e064 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -552,17 +552,17 @@ typedef union AmbiConfig {
typedef struct BufferSubList {
- ALuint64 FreeMask{0u};
+ ALuint64 FreeMask{~ALuint64{}};
struct ALbuffer *Buffers{nullptr}; /* 64 */
} BufferSubList;
typedef struct EffectSubList {
- ALuint64 FreeMask{0u};
+ ALuint64 FreeMask{~ALuint64{}};
struct ALeffect *Effects{nullptr}; /* 64 */
} EffectSubList;
typedef struct FilterSubList {
- ALuint64 FreeMask{0u};
+ ALuint64 FreeMask{~ALuint64{}};
struct ALfilter *Filters{nullptr}; /* 64 */
} FilterSubList;