1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-06-25 18:30:07 +00:00

Resolves undefined behaviour from uninitialised limited-range values.

This commit is contained in:
Thomas Harte 2018-03-22 21:58:42 -04:00
parent 2a320fdf56
commit eea6858121
6 changed files with 12 additions and 12 deletions

View File

@ -16,9 +16,9 @@ namespace Static {
namespace Acorn {
struct Target: public ::Analyser::Static::Target {
bool has_adfs;
bool has_dfs;
bool should_shift_restart;
bool has_adfs = false;
bool has_dfs = false;
bool should_shift_restart = false;
};
}

View File

@ -22,7 +22,7 @@ struct Target: public ::Analyser::Static::Target {
CPC6128
};
Model model;
Model model = Model::CPC464;
};
}

View File

@ -32,8 +32,8 @@ struct Target: public ::Analyser::Static::Target {
};
// TODO: shouldn't these be properties of the cartridge?
PagingModel paging_model;
bool uses_superchip;
PagingModel paging_model = PagingModel::None;
bool uses_superchip = false;
};
}

View File

@ -22,8 +22,8 @@ struct Target: public ::Analyser::Static::Target {
ThirtyTwoKB
};
MemoryModel memory_model;
bool has_c1540;
MemoryModel memory_model = MemoryModel::Unexpanded;
bool has_c1540 = false;
};
}

View File

@ -14,8 +14,8 @@ namespace Static {
namespace Oric {
struct Target: public ::Analyser::Static::Target {
bool use_atmos_rom;
bool has_microdisc;
bool use_atmos_rom = false;
bool has_microdisc = false;
};
}

View File

@ -22,8 +22,8 @@ struct Target: public ::Analyser::Static::Target {
SixtyFourKB
};
MemoryModel memory_model;
bool isZX81;
MemoryModel memory_model = MemoryModel::Unexpanded;
bool isZX81 = false;
};
}