mirror of
https://github.com/holub/mame
synced 2025-05-03 21:13:18 +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)
|
void fdc_pll_t::set_clock(const attotime &_period)
|
||||||
{
|
{
|
||||||
period = _period;
|
period = _period;
|
||||||
period_adjust_base = period * 0.05;
|
double period_as_double = period.as_double();
|
||||||
min_period = period * 0.75;
|
period_adjust_base = attotime::from_double(period_as_double * 0.05);
|
||||||
max_period = period * 1.25;
|
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)
|
void fdc_pll_t::reset(const attotime &when)
|
||||||
|
Loading…
Reference in New Issue
Block a user