Menu

#3 fixes: Rotated.C:245: warning: array subscript has type char

open
nobody
None
5
2005-07-14
2005-07-14
Anonymous
No

--- flwm-1.00/Rotated.C 2005-07-14 02:44:57.722731685 -0700
+++ flwm-new/Rotated.C 2005-07-14 02:34:19.686415000 -0700
@@ -242,9 +242,9 @@
}

for (ichar = 0; ichar < min_char; ichar++)
- rotfont->per_char[ichar] = rotfont->per_char['?'];
+ rotfont->per_char[ichar] = rotfont->per_char[(int)'?'];
for (ichar = max_char+1; ichar < 256; ichar++)
- rotfont->per_char[ichar] = rotfont->per_char['?'];
+ rotfont->per_char[ichar] = rotfont->per_char[(int)'?'];

/* free pixmap and GC ... */
XFreePixmap(dpy, canvas);

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.