Remove more warnings
This commit is contained in:
parent
626cc8fa6a
commit
6c3ac2af5c
@ -868,7 +868,7 @@ int drawtextwrap(pixel *vid, int x, int y, int w, const char *s, int r, int g, i
|
||||
while (*s)
|
||||
{
|
||||
wordlen = strcspn(s," .,!?\n");
|
||||
charspace = textwidthx(s, w-(x-cw));
|
||||
charspace = textwidthx((char *)s, w-(x-cw));
|
||||
if (charspace<wordlen && wordlen && w-(x-cw)<w/3)
|
||||
{
|
||||
x = sx;
|
||||
|
@ -2673,14 +2673,14 @@ int main(int argc, char *argv[])
|
||||
#ifdef BETA
|
||||
if (is_beta)
|
||||
{
|
||||
old_ver_len = textwidth(old_ver_msg_beta);
|
||||
old_ver_len = textwidth((char*)old_ver_msg_beta);
|
||||
}
|
||||
else
|
||||
{
|
||||
old_ver_len = textwidth(old_ver_msg);
|
||||
old_ver_len = textwidth((char*)old_ver_msg);
|
||||
}
|
||||
#else
|
||||
old_ver_len = textwidth(old_ver_msg);
|
||||
old_ver_len = textwidth((char*)old_ver_msg);
|
||||
#endif
|
||||
menu_count();
|
||||
parts = calloc(sizeof(particle), NPART);
|
||||
|
Reference in New Issue
Block a user