mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-05-18 18:41:31 +00:00
Avoid conflict with C++17 features std::byte by using uint8 type instead of byte
This commit is contained in:
@@ -114,7 +114,7 @@ namespace VeraCrypt
|
||||
|
||||
ScopeLock lock (AccessMutex);
|
||||
size_t bufferLen = buffer.Size(), loopLen;
|
||||
byte* pbBuffer = buffer.Get();
|
||||
uint8* pbBuffer = buffer.Get();
|
||||
|
||||
// Initialize JitterEntropy RNG for this call
|
||||
if (0 == jent_entropy_init ())
|
||||
@@ -267,7 +267,7 @@ namespace VeraCrypt
|
||||
Buffer buffer (1);
|
||||
for (size_t i = 0; i < PoolSize * 10; ++i)
|
||||
{
|
||||
buffer[0] = (byte) i;
|
||||
buffer[0] = (uint8) i;
|
||||
AddToPool (buffer);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user