From c13f8e53906a56ca7eac25de317e67559687c89e Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sat, 21 Oct 2017 22:42:19 -0400 Subject: [PATCH] Corrects a couple of cast conversion errors. --- Machines/Oric/Video.cpp | 2 +- Outputs/Speaker.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Machines/Oric/Video.cpp b/Machines/Oric/Video.cpp index d97c13916..f5f5d41f1 100644 --- a/Machines/Oric/Video.cpp +++ b/Machines/Oric/Video.cpp @@ -97,7 +97,7 @@ void VideoOutput::run_for(const Cycles cycles) { paper_ = 0x0; use_alternative_character_set_ = use_double_height_characters_ = blink_text_ = false; set_character_set_base_address(); - pixel_target_ = reinterpret_cast(crt_->allocate_write_area(240, 2)); + pixel_target_ = reinterpret_cast(crt_->allocate_write_area(240)); if(!counter_) { frame_counter_++; diff --git a/Outputs/Speaker.hpp b/Outputs/Speaker.hpp index 6bba2b5f4..9eb18ce86 100644 --- a/Outputs/Speaker.hpp +++ b/Outputs/Speaker.hpp @@ -153,7 +153,7 @@ template class Filter: public Speaker { unsigned int cycles_to_read = static_cast(buffer_in_progress_.size() - static_cast(buffer_in_progress_pointer_)); if(cycles_to_read > cycles_remaining) cycles_to_read = cycles_remaining; - static_cast(this)->get_samples(cycles_to_read, &buffer_in_progress_[static_cast(buffer_in_progress_pointer_])); + static_cast(this)->get_samples(cycles_to_read, &buffer_in_progress_[static_cast(buffer_in_progress_pointer_)]); buffer_in_progress_pointer_ += cycles_to_read; // announce to delegate if full