mirror of
https://github.com/holub/mame
synced 2025-04-29 03:20:50 +03:00
Fixed a bug in fdc_pll: there is no operator* to multiply an attotime
by a double
This commit is contained in:
parent
6a9fa8b067
commit
6e913e5245
@ -17,9 +17,10 @@ std::string fdc_pll_t::tts(attotime t)
|
||||
void fdc_pll_t::set_clock(const attotime &_period)
|
||||
{
|
||||
period = _period;
|
||||
period_adjust_base = period * 0.05;
|
||||
min_period = period * 0.75;
|
||||
max_period = period * 1.25;
|
||||
double period_as_double = period.as_double();
|
||||
period_adjust_base = attotime::from_double(period_as_double * 0.05);
|
||||
min_period = attotime::from_double(period_as_double * 0.75);
|
||||
max_period = attotime::from_double(period_as_double * 1.25);
|
||||
}
|
||||
|
||||
void fdc_pll_t::reset(const attotime &when)
|
||||
|
Loading…
Reference in New Issue
Block a user