It was 'int', but this doesn't match the IRIX 6.5 manual.
Suggested by Bruno Haible in
<http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
+2011-02-17 Paul Eggert <eggert@cs.ucla.edu>
+
+ * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
+ It was 'int', but this doesn't match the IRIX 6.5 manual.
+ Suggested by Bruno Haible in
+ <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
+
2011-02-17 Bruno Haible <bruno@clisp.org>
havelib: Fix comments.
}
# endif /* !SUNOS_5 */
# else /* sgi */
- int ldav_off;
-
- ldav_off = sysmp (MP_KERNADDR, MPKA_AVENRUN);
+ ptrdiff_t ldav_off = sysmp (MP_KERNADDR, MPKA_AVENRUN);
if (ldav_off != -1)
offset = (long int) ldav_off & 0x7fffffff;
# endif /* sgi */