mirror of
https://github.com/lifting-bits/remill
synced 2026-06-21 13:56:07 +00:00
Fix compilation on Windows (clang-cl)
This commit is contained in:
committed by
Kyle Elliott
parent
1be540eeef
commit
92cbd7a182
@@ -168,7 +168,7 @@ class DifferentialModuleBuilder {
|
||||
};
|
||||
|
||||
using random_bytes_engine =
|
||||
std::independent_bits_engine<std::default_random_engine, CHAR_BIT, uint8_t>;
|
||||
std::independent_bits_engine<std::default_random_engine, CHAR_BIT, uint16_t>;
|
||||
|
||||
|
||||
std::string PrintState(X86State *state) {
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
#include <functional>
|
||||
#include <map>
|
||||
#include <string_view>
|
||||
#include <string>
|
||||
|
||||
namespace remill {
|
||||
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
#include <cstdint>
|
||||
#include <memory>
|
||||
#include <string_view>
|
||||
#include <string>
|
||||
|
||||
namespace llvm {
|
||||
class Argument;
|
||||
|
||||
@@ -86,7 +86,7 @@ uint8_t MemoryHandler::read_byte(uint64_t addr) {
|
||||
return state.find(addr)->second;
|
||||
}
|
||||
|
||||
auto genned = rbe();
|
||||
auto genned = static_cast<uint8_t>(rbe());
|
||||
uninitialized_reads.insert({addr, genned});
|
||||
state.insert({addr, genned});
|
||||
return genned;
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace test_runner {
|
||||
|
||||
|
||||
using random_bytes_engine =
|
||||
std::independent_bits_engine<std::default_random_engine, CHAR_BIT, uint8_t>;
|
||||
std::independent_bits_engine<std::default_random_engine, CHAR_BIT, uint16_t>;
|
||||
|
||||
|
||||
class MemoryHandler {
|
||||
|
||||
Reference in New Issue
Block a user