diff --git a/fluid/fluid.cxx b/fluid/fluid.cxx index ad353a8fb..85a7b3826 100644 --- a/fluid/fluid.cxx +++ b/fluid/fluid.cxx @@ -130,7 +130,7 @@ void goto_source_dir() { if (p <= filename) return; // it is in the current directory char buffer[FL_PATH_MAX]; strlcpy(buffer, filename, sizeof(buffer)); - int n = p-filename; if (n>1) n--; buffer[n] = 0; + int n = (int)(p-filename); if (n>1) n--; buffer[n] = 0; if (!pwd) { pwd = getcwd(0,FL_PATH_MAX); if (!pwd) {fprintf(stderr,"getwd : %s\n",strerror(errno)); return;} @@ -1773,7 +1773,7 @@ int main(int argc,char **argv) { " -cs : write .cxx and .h and strings and exit\n" " -o : .cxx output filename, or extension if starts with '.'\n" " -h : .h output filename, or extension if starts with '.'\n"; - int len = strlen(msg) + strlen(argv[0]) + strlen(Fl::help); + int len = (int)(strlen(msg) + strlen(argv[0]) + strlen(Fl::help)); Fl_Plugin_Manager pm("commandline"); int i, n = pm.plugins(); for (i=0; i