Skip to content

Commit

Permalink
Prevent implicit double conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
astrelsky committed May 24, 2020
1 parent a95959f commit 37f7822
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ else
SMSTCPIP_INGAME_CFLAGS = INGAME_DRIVER=1
endif

EE_CFLAGS += -DOPL_VERSION=\"$(OPL_VERSION)\"
EE_CFLAGS += -fsingle-precision-constant -DOPL_VERSION=\"$(OPL_VERSION)\"
EE_OBJS += $(FRONTEND_OBJS) $(GFX_OBJS) $(MISC_OBJS) $(EECORE_OBJS) $(IOP_OBJS)
EE_OBJS := $(EE_OBJS:%=$(EE_OBJS_DIR)%)

Expand Down
2 changes: 1 addition & 1 deletion src/gui.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ void guiInit(void)
for (i = 0; i <= FADE_SIZE; ++i) {
float t = (float)(i) / FADE_SIZE;

fadetbl[i] = t * t * t * (t * (t * 6.0 - 15.0) + 10.0);
fadetbl[i] = t * t * t * (t * (t * 6.0f - 15.0f) + 10.0f);
}
}

Expand Down

0 comments on commit 37f7822

Please sign in to comment.