mirror of
git://git.sv.gnu.org/coreutils
synced 2026-06-05 23:32:26 -04:00
(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.
This commit is contained in:
+2
-2
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user