Index: ram/asgvce.c
===================================================================
--- ram/asgvce.c	(revision 8d0af8a17981de6858d4d988ef89e88937074696)
+++ ram/asgvce.c	(revision 3c4565611950233f76236773f5abbd2c25b48f5c)
@@ -83,5 +83,5 @@
 			DB_CMNT("ne_end - enter note end");
 			ep->e_time  = t_cur;
-			ep->e_type  = EV_NEND | 0x80;
+			ep->e_type  = (int8_t)(EV_NEND | 0x80);
 			ep->e_note  = (int8_t)nn;
 			ep->e_group = (int8_t)grp;
@@ -132,5 +132,5 @@
 					DB_CMNT("ne_end - enter note end");
 					ep->e_time  = t_cur;
-					ep->e_type  = EV_NEND | 0x80;
+					ep->e_type  = (int8_t)(EV_NEND | 0x80);
 					ep->e_note  = (int8_t)nn;
 					ep->e_group = (int8_t)grp;
@@ -245,5 +245,5 @@
 			DB_CMNT("ne_bgn - enter note begin");
 			ep->e_time  = t_cur;
-			ep->e_type  = EV_NBEG | 0x80;
+			ep->e_type  = (int8_t)(EV_NBEG | 0x80);
 			ep->e_note  = (int8_t)key;
 			ep->e_group = (int8_t)grp;
Index: ram/etimlt.c
===================================================================
--- ram/etimlt.c	(revision 8d0af8a17981de6858d4d988ef89e88937074696)
+++ ram/etimlt.c	(revision 3c4565611950233f76236773f5abbd2c25b48f5c)
@@ -27,5 +27,5 @@
 		mltstr[1] = '.';
 	else
-		mltstr[1] = SP_1P;
+		mltstr[1] = (int8_t)SP_1P;
 
 	mltstr[2] = mlttmp[1];		/* 2nd digit */
@@ -251,5 +251,5 @@
 
 			ebuf[1] = '1';
-			dspbuf[0] = SP_1P;	/* setup display buffer */
+			dspbuf[0] = (int8_t)SP_1P;	/* setup display buffer */
 
 		} else
Index: ram/etiosc.c
===================================================================
--- ram/etiosc.c	(revision 8d0af8a17981de6858d4d988ef89e88937074696)
+++ ram/etiosc.c	(revision 3c4565611950233f76236773f5abbd2c25b48f5c)
@@ -23,5 +23,5 @@
 int16_t	shrpflt[] = {  0, -100,    100};
 
-int8_t	sfdsp[]   = {' ', D_FLAT,  D_SHARP};
+int8_t	sfdsp[]   = {' ', (int8_t)D_FLAT, (int8_t)D_SHARP};
 
 static	int8_t	intstr[] = "+0000";
Index: ram/etival.c
===================================================================
--- ram/etival.c	(revision 8d0af8a17981de6858d4d988ef89e88937074696)
+++ ram/etival.c	(revision 3c4565611950233f76236773f5abbd2c25b48f5c)
@@ -252,5 +252,5 @@
 
 			ebuf[6] = '1';
-			dspbuf[0] = SP_1P;
+			dspbuf[0] = (int8_t)SP_1P;
 
 		} else
Index: ram/ettrns.c
===================================================================
--- ram/ettrns.c	(revision 8d0af8a17981de6858d4d988ef89e88937074696)
+++ ram/ettrns.c	(revision 3c4565611950233f76236773f5abbd2c25b48f5c)
@@ -136,5 +136,5 @@
 
 		if (dspbuf[0] EQ '1')
-			dspbuf[0] = SP_M1;	/* -1 */
+			dspbuf[0] = (int8_t)SP_M1;	/* -1 */
 		else
 			dspbuf[0] = '-';
@@ -143,5 +143,5 @@
 
 		if (dspbuf[0] EQ '1')
-			dspbuf[0] = SP_P1;	/* +1 */
+			dspbuf[0] = (int8_t)SP_P1;	/* +1 */
 		else
 			dspbuf[0] = '+';
Index: ram/m7menu.c
===================================================================
--- ram/m7menu.c	(revision 8d0af8a17981de6858d4d988ef89e88937074696)
+++ ram/m7menu.c	(revision 3c4565611950233f76236773f5abbd2c25b48f5c)
@@ -24,9 +24,9 @@
 static int8_t	ml01[61], ml02[61], ml03[61], ml04[61], ml05[61];
 
-static int8_t mlc01[] = {1, 0xBA,  58, 0xB1,  1, 0xBB,  -1};
-static int8_t mlc02[] = {1, 0xB6,  29, 0xB1,  1, 0xB7,  28, 0xB1,  1, 0xB4,  -1};
-static int8_t mlc03[] = {1, 0xB6,  29, 0xB1,  1, 0xB2,  28, 0xB1,  1, 0xB4,  -1};
-static int8_t mlc04[] = {1, 0xB6,  29, 0xB1,  1, 0xB5,  28, 0xB1,  1, 0xB4,  -1};
-static int8_t mlc05[] = {1, 0xB9,  58, 0xB1,  1, 0xB8,  -1};
+static int8_t mlc01[] = {1, (int8_t)0xBA,  58, (int8_t)0xB1,  1, (int8_t)0xBB,  -1};
+static int8_t mlc02[] = {1, (int8_t)0xB6,  29, (int8_t)0xB1,  1, (int8_t)0xB7,  28, (int8_t)0xB1,  1, (int8_t)0xB4,  -1};
+static int8_t mlc03[] = {1, (int8_t)0xB6,  29, (int8_t)0xB1,  1, (int8_t)0xB2,  28, (int8_t)0xB1,  1, (int8_t)0xB4,  -1};
+static int8_t mlc04[] = {1, (int8_t)0xB6,  29, (int8_t)0xB1,  1, (int8_t)0xB5,  28, (int8_t)0xB1,  1, (int8_t)0xB4,  -1};
+static int8_t mlc05[] = {1, (int8_t)0xB9,  58, (int8_t)0xB1,  1, (int8_t)0xB8,  -1};
 
 static int8_t	*mtexts[] = {
Index: ram/midas.c
===================================================================
--- ram/midas.c	(revision 8d0af8a17981de6858d4d988ef89e88937074696)
+++ ram/midas.c	(revision 3c4565611950233f76236773f5abbd2c25b48f5c)
@@ -10,5 +10,5 @@
 #include "ram.h"
 
-#define	LCD_TIME	((int32_t)(800 * 240))	/* LCD backlight 'on' time */
+#define	LCD_TIME	((int32_t)800 * (int32_t)240)	/* LCD backlight 'on' time */
 
 #if	DEBUGIT
Index: ram/msm.c
===================================================================
--- ram/msm.c	(revision 8d0af8a17981de6858d4d988ef89e88937074696)
+++ ram/msm.c	(revision 3c4565611950233f76236773f5abbd2c25b48f5c)
@@ -129,5 +129,5 @@
 						case 6:		/* active sensing */
 
-							masens[miport] |= 0x00FF;
+							masens[miport] |= (int8_t)0x00FF;
 							break;
 
@@ -219,5 +219,5 @@
 						case 6:		/* active sensing */
 
-							masens[miport] |= 0x00FF;
+							masens[miport] |= (int8_t)0x00FF;
 							break;
 
@@ -385,5 +385,5 @@
 						case 6:		/* active sensing */
 
-							masens[miport] |= 0x00FF;
+							masens[miport] |= (int8_t)0x00FF;
 							break;
 
@@ -480,5 +480,5 @@
 						case 6:		/* active sensing */
 
-							masens[miport] |= 0x00FF;
+							masens[miport] |= (int8_t)0x00FF;
 							break;
 
