diff options
| author | darealshinji <djcj@gmx.de> | 2020-02-09 11:39:50 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2020-02-09 15:31:57 +0100 |
| commit | 71dc3269cddc3b48d518e95857ba3a06074c3cac (patch) | |
| tree | 185968d51cee3fffe1f842e1dfa772cffa4a358c /src/Fl_Native_File_Chooser_GTK.cxx | |
| parent | 707b81b626bb7f11b2fbb3908d31195cb75199e3 (diff) | |
Eliminate -Wunknown-pragmas and -Wsign-compare warnings on GCC
Diffstat (limited to 'src/Fl_Native_File_Chooser_GTK.cxx')
| -rw-r--r-- | src/Fl_Native_File_Chooser_GTK.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_Native_File_Chooser_GTK.cxx b/src/Fl_Native_File_Chooser_GTK.cxx index d03f3ba9f..4195ef9bf 100644 --- a/src/Fl_Native_File_Chooser_GTK.cxx +++ b/src/Fl_Native_File_Chooser_GTK.cxx @@ -519,7 +519,7 @@ static char *text_file_preview(const char *fname) { int len = fread(text, 1, 4010, in); fclose(in); text[len] = 0; - if (strlen(text) < len) text[0] = 0; // presence of null byte in file --> not text + if ((int)strlen(text) < len) text[0] = 0; // presence of null byte in file --> not text char *p = text; int count = 0; const char *end = text + strlen(text); |
