Skip to content
Snippets Groups Projects
Commit 7a7caa11 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix MSVC warning about signed/unsigned comparison

parent 0d74bbba
No related branches found
No related tags found
No related merge requests found
......@@ -1344,7 +1344,7 @@ bool sbbs_t::editfile(char *fname, uint maxlines, const char* to, const char* fr
}
if ((file = nopen(fname, O_RDONLY)) != -1) {
length = (long)filelength(file);
if (length < 0 || length > (long)maxlines * MAX_LINE_LEN) {
if (length < 0 || length > (long)(maxlines * MAX_LINE_LEN)) {
close(file);
free(buf);
attr(cfg.color[clr_err]);
......
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