Skip to content
Snippets Groups Projects
Commit 046daaf9 authored by deuce's avatar deuce
Browse files

"Fix" warning.

parent 00ec27b1
No related branches found
No related tags found
No related merge requests found
......@@ -1994,7 +1994,8 @@ void getstrupd(int left, int top, int width, char *outstr, int cursoffset, int *
gotoxy(left,top);
if(mode&K_PASSWORD)
cprintf("%-*.*s",width,width,"********************************************************************************"+(80-strlen(outstr+*scrnoffset)));
// This typecast is to suppress a clang warning "adding 'unsigned long' to a string does not append to the string [-Wstring-plus-int]"
cprintf("%-*.*s",width,width,((char *)"********************************************************************************")+(80-strlen(outstr+*scrnoffset)));
else
cprintf("%-*.*s",width,width,outstr+*scrnoffset);
gotoxy(left+(cursoffset-*scrnoffset),top);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment