1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-19 19:16:34 +00:00

Starts sketching out an interface for IWM drives, eliminating a dangling use of unsigned as it goes.

This commit is contained in:
Thomas Harte
2019-07-10 16:05:59 -04:00
parent 886946cc8c
commit c4ab0bb867
13 changed files with 143 additions and 20 deletions
+4 -4
View File
@@ -15,7 +15,7 @@
using namespace Storage;
TimedEventLoop::TimedEventLoop(unsigned int input_clock_rate) :
TimedEventLoop::TimedEventLoop(int input_clock_rate) :
input_clock_rate_(input_clock_rate) {}
void TimedEventLoop::run_for(const Cycles cycles) {
@@ -46,11 +46,11 @@ void TimedEventLoop::run_for(const Cycles cycles) {
assert(cycles_until_event_ > 0);
}
unsigned int TimedEventLoop::get_cycles_until_next_event() {
return static_cast<unsigned int>(std::max(cycles_until_event_, 0));
int TimedEventLoop::get_cycles_until_next_event() {
return std::max(cycles_until_event_, 0);
}
unsigned int TimedEventLoop::get_input_clock_rate() {
int TimedEventLoop::get_input_clock_rate() {
return input_clock_rate_;
}