summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-03-09 07:14:19 +0000
committerJim Meyering <jim@meyering.net>2003-03-09 07:14:19 +0000
commit25697ff274d7bda1ffa4a131719bccefacb3a799 (patch)
tree7afc0e32a51d737f9d02021f967eb95fc2faf1c9
parent5a7ffbd8f95e1030ada3a329a75d1b706e90153c (diff)
downloadcoreutils-25697ff274d7bda1ffa4a131719bccefacb3a799.tar.xz
(AD_stack_pop): Cast sizeof... to int before changing its sign.
This avoids a warning from gcc on 64-bit systems. (pop_dir): Reverse order of sign change and cast, to be consistent with the above.
-rw-r--r--src/remove.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/remove.c b/src/remove.c
index 36fe332f6..d9a87e1c2 100644
--- a/src/remove.c
+++ b/src/remove.c
@@ -235,7 +235,7 @@ pop_dir (Dirstack_state *ds)
/* Pop the length stack, too. */
assert (obstack_object_size (&ds->len_stack) >= sizeof (size_t));
- obstack_blank (&ds->len_stack, (int) -(sizeof (size_t)));
+ obstack_blank (&ds->len_stack, -(int) sizeof (size_t));
}
/* Copy the SRC_LEN bytes of data beginning at SRC into the DST_LEN-byte
@@ -359,7 +359,7 @@ AD_stack_pop (Dirstack_state *ds)
struct AD_ent *top = AD_stack_top (ds);
if (top->unremovable)
hash_free (top->unremovable);
- obstack_blank (&ds->Active_dir, -sizeof (struct AD_ent));
+ obstack_blank (&ds->Active_dir, -(int) sizeof (struct AD_ent));
pop_dir (ds);
}