Index: ram/ucslice.c
===================================================================
--- ram/ucslice.c	(revision a3c602f4299121911df2c5d327653978a8387a96)
+++ ram/ucslice.c	(revision ba51a457e71ff1bd4f8245dec8c82a47b8fc84b2)
@@ -32,5 +32,6 @@
 	int32_t lc;
 	uint16_t i, ncolor, mask1, mask2;
-	uint16_t *ncptr, *nctabp;
+	uint16_t *ncptr;
+	int16_t *nctabp;
 	struct gdsel **gdstp, *gdprv, *gdnxt;
 	int16_t *lintab;
@@ -121,5 +122,5 @@
 					/* get event color */
 
-					ncolor = mask1 & gdsep->note;
+					ncolor = mask1 & (uint16_t)gdsep->note;
 
 					/* update the slice */
