Index: opari/tool/opari.cc
===================================================================
--- opari.orig/tool/opari.cc	2012-05-20 22:14:20.222098603 +0200
+++ opari/tool/opari.cc	2012-05-20 22:15:33.000000000 +0200
@@ -154,7 +154,7 @@ int main (int argc, char *argv[]) {
     out_filename = new char[strlen(infile)+5];
     char* dot = (char *) strrchr(infile, '.');
     if ( dot != 0 ) {
-      sprintf(out_filename, "%.*s.mod%s", dot - infile, infile, dot);
+      sprintf(out_filename, "%.*s.mod%s", (int) (dot - infile), infile, dot);
     
       if ( keepSrcInfo && (lang & L_FORTRAN) ) {
         dot = strrchr(out_filename, '.');
