]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/utils.c
Cast RLIM_INFINITY to rlim_t to fix 64-bit Solaris 10 build
[thirdparty/binutils-gdb.git] / gdb / utils.c
index d7980fe3a186465bdf07c82adbf2d50829b6866b..8d4a744e718c779f38b421c150ccd5e1612acf4f 100644 (file)
@@ -220,7 +220,7 @@ void
 dump_core (void)
 {
 #ifdef HAVE_SETRLIMIT
-  struct rlimit rlim = { RLIM_INFINITY, RLIM_INFINITY };
+  struct rlimit rlim = { (rlim_t) RLIM_INFINITY, (rlim_t) RLIM_INFINITY };
 
   setrlimit (RLIMIT_CORE, &rlim);
 #endif /* HAVE_SETRLIMIT */