mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-15 18:03:30 +00:00
34 lines
1.1 KiB
Diff
34 lines
1.1 KiB
Diff
From 38757aa88735ab2e511bc428e2407a5a5e9fa0be Mon Sep 17 00:00:00 2001
|
|
From: Iain Sandoe <iain@sandoe.co.uk>
|
|
Date: Mon, 23 Aug 2021 17:34:43 +0100
|
|
Subject: [PATCH] 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.
|
|
---
|
|
libiberty/simple-object-mach-o.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/libiberty/simple-object-mach-o.c b/libiberty/simple-object-mach-o.c
|
|
index 72b69d19c216..a8869e7c6395 100644
|
|
--- a/libiberty/simple-object-mach-o.c
|
|
+++ b/libiberty/simple-object-mach-o.c
|
|
@@ -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;
|
|
|
|
--
|
|
2.43.5
|