mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 23:25:24 +02:00
libiberty, Darwin: Fix a build warning.
r12-3005-g220c410162ebece4f missed a cast for the set_32 call. Fixed thus. Signed-off-by: Iain Sandoe <iain@sandoe.co.uk> libiberty/ChangeLog: * simple-object-mach-o.c (simple_object_mach_o_write_segment): Cast the first argument to set_32 as needed.
This commit is contained in:
@@ -1228,7 +1228,7 @@ simple_object_mach_o_write_segment (simple_object_write *sobj, int descriptor,
|
||||
/* Swap the indices, if required. */
|
||||
|
||||
for (i = 0; i < (nsects_in * 4); ++i)
|
||||
set_32 (&index[i], index[i]);
|
||||
set_32 ((unsigned char *) &index[i], index[i]);
|
||||
|
||||
sechdr_offset += sechdrsize;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user