Fixed some GCC pedantic warnings.

This commit is contained in:
OBattler
2023-08-25 02:28:51 +02:00
parent e578b6b418
commit 782117dbbd
8 changed files with 51 additions and 19 deletions

View File

@@ -818,9 +818,12 @@ opFSINCOS(uint32_t fetchdat)
static int
opFRNDINT(uint32_t fetchdat)
{
double dst0;
FP_ENTER();
cpu_state.pc++;
ST(0) = (double) x87_fround(ST(0));
dst0 = x87_fround(ST(0));
ST(0) = (double) dst0;
FP_TAG_VALID;
CLOCK_CYCLES_FPU((fpu_type >= FPU_487SX) ? (x87_timings.frndint) : (x87_timings.frndint * cpu_multi));
CONCURRENCY_CYCLES((fpu_type >= FPU_487SX) ? (x87_concurrency.frndint) : (x87_concurrency.frndint * cpu_multi));