1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-26 03:29:40 +00:00

Standardises on const [Half]Cycles as the thing called and returned, rather than const [Half]Cycles & as it's explicitly defined to be only one int in size, so using a reference is overly weighty.

This commit is contained in:
Thomas Harte
2017-07-27 22:05:29 -04:00
parent 1fb158b297
commit 4abd62e62b
47 changed files with 55 additions and 55 deletions
+1 -1
View File
@@ -104,7 +104,7 @@ void Microdisc::set_head_load_request(bool head_load) {
}
}
void Microdisc::run_for(const Cycles &cycles) {
void Microdisc::run_for(const Cycles cycles) {
if(head_load_request_counter_ < head_load_request_counter_target) {
head_load_request_counter_ += cycles.as_int();
if(head_load_request_counter_ >= head_load_request_counter_target) set_head_loaded(true);