Parcourir la source

Fixing a compiler warning with the assignment.

Christoph Lohmann il y a 11 ans
Parent
commit
6f4cfa5136
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      st.c

+ 1 - 1
st.c

@@ -1257,7 +1257,7 @@ ttyread(void) {
 	/* process every complete utf8 char */
 	buflen += ret;
 	ptr = buf;
-	while(charsize = utf8decode(ptr, &unicodep, buflen)) {
+	while((charsize = utf8decode(ptr, &unicodep, buflen))) {
 		utf8encode(unicodep, s, UTF_SIZ);
 		tputc(s, charsize);
 		ptr += charsize;