fix some warnings about float precision
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3508
This commit is contained in:
parent
f56fdefb31
commit
fa80b0458a
2 changed files with 3 additions and 2 deletions
|
@ -68,7 +68,8 @@ static void cmos_checktimer(void) {
|
|||
LOG(LOG_PIT,LOG_NORMAL)("RTC Timer at %.2f hz",1000.0/cmos.timer.delay);
|
||||
// PIC_AddEvent(cmos_timerevent,cmos.timer.delay);
|
||||
/* A rtc is always running */
|
||||
PIC_AddEvent(cmos_timerevent,(double)cmos.timer.delay-fmod(PIC_FullIndex(),(double)cmos.timer.delay)); //Should be more like a real pc. Check
|
||||
double remd=fmod(PIC_FullIndex(),(double)cmos.timer.delay);
|
||||
PIC_AddEvent(cmos_timerevent,(float)((double)cmos.timer.delay-remd)); //Should be more like a real pc. Check
|
||||
// status reg A reading with this (and with other delays actually)
|
||||
}
|
||||
|
||||
|
|
|
@ -62,7 +62,7 @@ static const fltype frqmul_tab[16] = {
|
|||
0.5,1,2,3,4,5,6,7,8,9,10,10,12,12,15,15
|
||||
};
|
||||
// calculated frequency multiplication values (depend on sampling rate)
|
||||
static float frqmul[16];
|
||||
static fltype frqmul[16];
|
||||
|
||||
// key scale levels
|
||||
static Bit8u kslev[8][16];
|
||||
|
|
Loading…
Add table
Reference in a new issue