aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorMerry <[email protected]>2022-11-27 14:19:06 +0000
committerLiam <[email protected]>2022-12-03 11:16:26 -0500
commit3d6faf403b91767816be7b8ad8cf4159708ad9ca (patch)
tree06c5008f0d4793b531cac769a9902a9d7157ee98 /tests
parentbcb5948ea2cdd99c2eb6fb5ad6c8552b64427ec5 (diff)
downloaddynarmic-3d6faf403b91767816be7b8ad8cf4159708ad9ca.tar.gz
dynarmic-3d6faf403b91767816be7b8ad8cf4159708ad9ca.zip
test_generator: Minor fixups
Diffstat (limited to 'tests')
-rw-r--r--tests/test_generator.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_generator.cpp b/tests/test_generator.cpp
index c0d7d6e4..58d5c088 100644
--- a/tests/test_generator.cpp
+++ b/tests/test_generator.cpp
@@ -143,7 +143,7 @@ bool ShouldTestA32Inst(u32 instruction, u32 pc, bool is_thumb, bool is_last_inst
return ShouldTestInst(block);
}
-bool ShouldTestA64Inst(u32 instruction, u32 pc, bool is_last_inst) {
+bool ShouldTestA64Inst(u32 instruction, u64 pc, bool is_last_inst) {
const A64::LocationDescriptor location = A64::LocationDescriptor{pc, {}};
IR::Block block{location};
const bool should_continue = A64::TranslateSingleInstruction(block, location, instruction);
@@ -650,7 +650,7 @@ static std::optional<size_t> str2sz(char const* s) {
errno = 0;
const long l = std::strtol(s, &end, 10);
- if (errno == ERANGE || l > std::numeric_limits<size_t>::max() || l < 0) {
+ if (errno == ERANGE || l < 0) {
return std::nullopt;
}
if (*s == '\0' || *end != '\0') {
@@ -673,7 +673,7 @@ int main(int argc, char* argv[]) {
return 1;
}
- detail::g_rand_int_generator.seed(*seed);
+ detail::g_rand_int_generator.seed(static_cast<std::mt19937::result_type>(*seed));
if (strcmp(argv[1], "thumb") == 0) {
TestThumb(*instruction_count, *iterator_count);