signedness warnings silence
diff --git a/libtelnet.c b/libtelnet.c
index 6ee8e25..aa1117e 100644
--- a/libtelnet.c
+++ b/libtelnet.c
@@ -932,7 +932,7 @@
for (l = i = 0; i != size; ++i) {
/* dump prior portion of text, send escaped bytes */
- if (buffer[i] == TELNET_IAC) {
+ if (buffer[i] == (char)TELNET_IAC) {
/* dump prior text if any */
if (i != l)
_send(telnet, buffer + l, i - l);
@@ -1017,7 +1017,7 @@
/* send */
for (l = i = 0; i != rs; ++i) {
/* special characters */
- if (buffer[i] == TELNET_IAC || buffer[i] == '\r' ||
+ if (buffer[i] == (char)TELNET_IAC || buffer[i] == '\r' ||
buffer[i] == '\n') {
/* dump prior portion of text */
if (i != l)
@@ -1025,7 +1025,7 @@
l = i + 1;
/* IAC -> IAC IAC */
- if (buffer[i] == TELNET_IAC)
+ if (buffer[i] == (char)TELNET_IAC)
telnet_iac(telnet, TELNET_IAC);
/* automatic translation of \r -> CRNUL */
else if (buffer[i] == '\r')