Index: ram/dec2fr.c
===================================================================
--- ram/dec2fr.c	(revision f06df215de06a1f59638a090308ffa20c748b3ef)
+++ ram/dec2fr.c	(revision eee74cd451cf555e65fd930a513376e2d9c21ed8)
@@ -98,5 +98,5 @@
 	register int16_t i, p;
 
-	if (v EQ 0x7FFF) {	/* +100 */
+	if (v EQ 32767) {	/* +100 */
 
 		sprintf(s, "100+");
@@ -104,5 +104,5 @@
 	}
 
-	if (v EQ 0x8000) {	/* -100 */
+	if (v EQ -32768) {	/* -100 */
 
 		sprintf(s, "100-");
Index: ram/delpnts.c
===================================================================
--- ram/delpnts.c	(revision f06df215de06a1f59638a090308ffa20c748b3ef)
+++ ram/delpnts.c	(revision eee74cd451cf555e65fd930a513376e2d9c21ed8)
@@ -247,5 +247,5 @@
 		fp2 = (int8_t *)&ip->idhpnt[j--];
 
-		for (l = 0; l < sizeof (struct instpnt); l++)
+		for (l = 0; l < (int16_t)sizeof (struct instpnt); l++)
 			*fp1++ = *fp2++;
 	}
Index: ram/dopatch.c
===================================================================
--- ram/dopatch.c	(revision f06df215de06a1f59638a090308ffa20c748b3ef)
+++ ram/dopatch.c	(revision eee74cd451cf555e65fd930a513376e2d9c21ed8)
@@ -288,5 +288,5 @@
 		baseled = lg2base[suba];	/* get base of LED group */
 
-		for (i = 0; i < (3 + (suba & 1)); i++) {	/* scan LEDs */
+		for (i = 0; i < (int16_t)(3 + (suba & 1)); i++) {	/* scan LEDs */
 
 			curled = i + baseled;
Index: ram/etimlt.c
===================================================================
--- ram/etimlt.c	(revision f06df215de06a1f59638a090308ffa20c748b3ef)
+++ ram/etimlt.c	(revision eee74cd451cf555e65fd930a513376e2d9c21ed8)
@@ -164,5 +164,5 @@
 		tmpval = dec2fr(&ebuf[1]);
 
-		if (tmpval EQ 0xFFFF)
+		if (tmpval EQ -1)
 			return(FAILURE);
 		else
Index: ram/etival.c
===================================================================
--- ram/etival.c	(revision f06df215de06a1f59638a090308ffa20c748b3ef)
+++ ram/etival.c	(revision eee74cd451cf555e65fd930a513376e2d9c21ed8)
@@ -150,5 +150,5 @@
 		tmpval = dec2fr(&ebuf[6]);
 
-		if (tmpval EQ 0xFFFF) {
+		if (tmpval EQ -1) {
 
 #if	DEBUGIT
Index: ram/ptselbx.c
===================================================================
--- ram/ptselbx.c	(revision f06df215de06a1f59638a090308ffa20c748b3ef)
+++ ram/ptselbx.c	(revision eee74cd451cf555e65fd930a513376e2d9c21ed8)
@@ -891,5 +891,5 @@
 				ebuf[3] = ptdebuf[42];
 
-				if (0xFFFF EQ (i = dec2fr(ebuf))) {
+				if (-1 EQ (i = dec2fr(ebuf))) {
 
 					badpdat();
