diff --git a/src/sbbs3/con_out.cpp b/src/sbbs3/con_out.cpp
index aab1a7ba746a183e4e8af62219d19a634b52c75f..5d4210a9adf749662def0d23d68d90e2ffa2e39c 100644
--- a/src/sbbs3/con_out.cpp
+++ b/src/sbbs3/con_out.cpp
@@ -217,7 +217,7 @@ void sbbs_t::outchar(char ch)
 			putcom("\x1b[2J\x1b[H");	/* clear screen, home cursor */
 		}
 		else {
-			if(ch==TELNET_IAC && !(telnet_mode&TELNET_MODE_OFF))
+			if(ch==(char)TELNET_IAC && !(telnet_mode&TELNET_MODE_OFF))
 				outcom(TELNET_IAC);	/* Must escape Telnet IAC char (255) */
 			i=0;
 			while(outcom(ch)&TXBOF && i<1440) { /* 3 minute pause delay */