Index: ram/sqscan.c
===================================================================
--- ram/sqscan.c	(revision 2a87ef34fd07974c881421fb76ef1350c42eb653)
+++ ram/sqscan.c	(revision 66072f00cdd38404cee97411874594ab58adecf8)
@@ -99,7 +99,7 @@
 {
 	nsp->e_time  = t_cur;
-	nsp->e_type  = nt;
-	nsp->e_note  = note;
-	nsp->e_group = grp;
+	nsp->e_type  = (int8_t)nt;
+	nsp->e_note  = (int8_t)note;
+	nsp->e_group = (int8_t)grp;
 	nsp->e_vel   = vel;
 
@@ -131,5 +131,5 @@
 			CM_NOGO;
 
-		curgrp = QQnum;
+		curgrp = (int16_t)QQnum;
 
 		if (verbose)
@@ -155,5 +155,5 @@
 			tsp1->e_time  = t_cur;
 			tsp1->e_type  = EV_GRP;
-			tsp1->e_data1 = curgrp;
+			tsp1->e_data1 = (int8_t)curgrp;
 			tsp1->e_data2 = GS_ENBL;
 
@@ -176,5 +176,5 @@
 			tsp1->e_time  = t_cur;
 			tsp1->e_type  = EV_GRP;
-			tsp1->e_data1 = curgrp;
+			tsp1->e_data1 = (int8_t)curgrp;
 			tsp1->e_data2 = GS_DSBL;
 
@@ -200,5 +200,5 @@
 			CM_NOGO;
 
-		aux1 = QQnum;
+		aux1 = (int16_t)QQnum;
 
 		if (E_NULL EQ (tsp1 = e_alc(E_SIZE2))) {
@@ -210,5 +210,5 @@
 		tsp1->e_time  = t_cur;
 		tsp1->e_type  = EV_TMPO;
-		tsp1->e_data1 = aux1;
+		tsp1->e_data1 = (int8_t)aux1;
 
 		p_cur = e_ins(tsp1, ep_adj(p_cur, 0, t_cur))->e_fwd;
@@ -228,5 +228,5 @@
 			CM_NOGO;
 
-		aux1 = QQnum;
+		aux1 = (int16_t)QQnum;
 
 		if (E_NULL EQ (tsp1 = e_alc(E_SIZE2))) {
@@ -238,6 +238,6 @@
 		tsp1->e_time  = t_cur;
 		tsp1->e_type  = EV_INST;
-		tsp1->e_data1 = curgrp;
-		tsp1->e_data2 = aux1;
+		tsp1->e_data1 = (int8_t)curgrp;
+		tsp1->e_data2 = (int8_t)aux1;
 
 		p_cur = e_ins(tsp1, ep_adj(p_cur, 0, t_cur))->e_fwd;
@@ -258,5 +258,5 @@
 			CM_NOGO;
 
-		aux1 = QQnum;
+		aux1 = (int16_t)QQnum;
 
 		if (E_NULL EQ (tsp1 = e_alc(E_SIZE2))) {
@@ -268,5 +268,5 @@
 		tsp1->e_time  = t_cur;
 		tsp1->e_type  = EV_TUNE;
-		tsp1->e_data1 = aux1;
+		tsp1->e_data1 = (int8_t)aux1;
 
 		p_cur = e_ins(tsp1, ep_adj(p_cur, 0, t_cur))->e_fwd;
@@ -293,5 +293,5 @@
 			CM_NOGO;
 
-		aux1 = QQnum;
+		aux1 = (int16_t)QQnum;
 
 		if (QQchr EQ '-')
@@ -306,5 +306,5 @@
 		tsp1->e_time  = t_cur;
 		tsp1->e_type  = EV_TRNS;
-		tsp1->e_data1 = curgrp;
+		tsp1->e_data1 = (int8_t)curgrp;
 		tsp1->e_lft = (struct s_entry *)aux1;
 
@@ -326,5 +326,5 @@
 			CM_NOGO;
 
-		aux1 = QQnum;
+		aux1 = (int16_t)QQnum;
 
 		if (E_NULL EQ (tsp1 = e_alc(E_SIZE2))) {
@@ -336,6 +336,6 @@
 		tsp1->e_time  = t_cur;
 		tsp1->e_type  = EV_DYN;
-		tsp1->e_data1 = curgrp;
-		tsp1->e_data2 = aux1;
+		tsp1->e_data1 = (int8_t)curgrp;
+		tsp1->e_data2 = (int8_t)aux1;
 
 		p_cur = e_ins(tsp1, ep_adj(p_cur, 0, t_cur))->e_fwd;
@@ -355,5 +355,5 @@
 			CM_NOGO;
 
-		aux1 = QQnum;
+		aux1 = (int16_t)QQnum;
 
 		if (E_NULL EQ (tsp1 = e_alc(E_SIZE2))) {
@@ -365,6 +365,6 @@
 		tsp1->e_time  = t_cur;
 		tsp1->e_type  = EV_LOCN;
-		tsp1->e_data1 = curgrp;
-		tsp1->e_data2 = aux1;
+		tsp1->e_data1 = (int8_t)curgrp;
+		tsp1->e_data2 = (int8_t)aux1;
 
 		p_cur = e_ins(tsp1, ep_adj(p_cur, 0, t_cur))->e_fwd;
@@ -467,5 +467,5 @@
 			CM_NOGO;
 
-		thescore = QQnum;
+		thescore = (int16_t)QQnum;
 
 		selscor(thescore);
@@ -529,5 +529,5 @@
 		if (CM_NUM) {
 
-			aux1 = QQnum;
+			aux1 = (int16_t)QQnum;
 			sc_clr(aux1);
 
