view emulation/libretro-bluemsx/patch-clang.patch @ 850:9363ef0e4e47

emulation/libretro-bluemsx: initial import, closes #2130
author David Demelier <markand@malikania.fr>
date Sat, 24 Aug 2019 13:21:28 +0200
parents
children
line wrap: on
line source

--- ./Src/SoundChips/OpenMsxYMF278.cpp.orig	2019-08-24 11:13:09.319169389 +0000
+++ ./Src/SoundChips/OpenMsxYMF278.cpp	2019-08-24 11:14:16.531171453 +0000
@@ -143,7 +143,7 @@
 #undef O
 
 
-#define SC(db) (unsigned int) (db * (2.0 / ENV_STEP))
+#define SC(db) static_cast<int>(db * (2.0 / ENV_STEP))
 const int am_depth[8] = {
 	SC(0),	   SC(1.781), SC(2.906), SC(3.656),
 	SC(4.406), SC(5.906), SC(7.406), SC(11.91)
--- ./Src/SoundChips/OpenMsxYM2413_2.cpp.orig	2019-08-24 11:10:11.007163911 +0000
+++ ./Src/SoundChips/OpenMsxYM2413_2.cpp	2019-08-24 11:12:25.523168043 +0000
@@ -781,7 +781,7 @@
 // EG
 void OpenYM2413_2::Slot::calc_envelope(int lfo_am)
 {
-	#define S2E(x) (SL2EG((int)(x / SL_STEP)) << (EG_DP_BITS - EG_BITS)) 
+	#define S2E(x) static_cast<unsigned int>(SL2EG((int)(x / SL_STEP)) << (EG_DP_BITS - EG_BITS)) 
 	static unsigned int SL[16] = {
 		S2E( 0.0), S2E( 3.0), S2E( 6.0), S2E( 9.0),
 		S2E(12.0), S2E(15.0), S2E(18.0), S2E(21.0),