diff --git a/lib/miofile.C b/lib/miofile.C index 0bcc12d75a..9a15bf589b 100644 --- a/lib/miofile.C +++ b/lib/miofile.C @@ -75,7 +75,7 @@ char* MIOFILE::fgets(char* dst, int len) { if (!q) return 0; q++; - int n = q - buf; + int n = (int)(q - buf); if (n > len-1) n = len-1; memcpy(dst, buf, n); dst[n] = 0;