]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Fri, 12 Mar 2010 21:00:51 +0000 (21:00 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Fri, 12 Mar 2010 21:00:51 +0000 (21:00 +0000)
magick/resource.c

index 447e51e39537c79d31fc7243e8420231a052d3ae..39eb8f16af132c5b99182d0ee013aca1575b530f 100644 (file)
@@ -968,7 +968,7 @@ MagickExport MagickBooleanType ResourceComponentGenesis(void)
         resources;
 
       if (getrlimit(RLIMIT_NOFILE,&resources) != -1)
-        files=resources.rlim_cur;
+        files=(long) resources.rlim_cur;
   }
 #endif
 #if defined(MAGICKCORE_HAVE_GETDTABLESIZE) && defined(MAGICKCORE_POSIX_SUPPORT)