From e8251cc2c24d349c84b5a437094faa0f520e782c Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 8 May 2002 10:08:04 +0000 Subject: 2002-05-08 Roland McGrath * rr.c (rrip_work): Cast pointer to uintptr_t instead of int. --- isofs/rr.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'isofs') diff --git a/isofs/rr.c b/isofs/rr.c index 05c4e051..f26d9e42 100644 --- a/isofs/rr.c +++ b/isofs/rr.c @@ -1,5 +1,5 @@ /* - Copyright (C) 1997, 1999 Free Software Foundation, Inc. + Copyright (C) 1997,99,2002 Free Software Foundation, Inc. Written by Thomas Bushnell, n/BSG. This file is part of the GNU Hurd. @@ -22,6 +22,7 @@ #include #include +#include #include "isofs.h" /* These tell whether the specified extensions are on or not. */ @@ -94,7 +95,7 @@ rrip_work (struct dirrect *dr, struct rrip_lookup *rr, /* Set C to the system use area. */ c = p->name + p->namelen; - if ((int)c & 1) + if ((uintptr_t)c & 1) c++; /* There needs to be an SUSP SP field right here; make sure there is */ @@ -113,7 +114,7 @@ rrip_work (struct dirrect *dr, struct rrip_lookup *rr, { /* It's in the normal place. */ bp = dr->name + dr->namelen; - if ((int) bp & 1) + if ((uintptr_t) bp & 1) bp++; /* must be even */ bp += susp_skip; /* skip to start of susp area */ terminus = (char *) dr + dr->len; -- cgit v1.2.3