aports/community/newlib/0005-or1k-add-missing-cast.patch
2024-05-09 19:33:36 +00:00

14 lines
472 B
Diff

This adds a missing cast. uintptr_t would have been better here than uint32_t,
but the code is not intended to be portable anyway.
--- a/libgloss/or1k/sbrk.c 2024-05-09 13:38:08.089257549 +0200
+++ b/libgloss/or1k/sbrk.c 2024-05-09 13:35:29.896791467 +0200
@@ -20,7 +20,7 @@
#include "include/or1k-support.h"
extern uint32_t end; /* Set by linker. */
-uint32_t _or1k_heap_start = &end;
+uint32_t _or1k_heap_start = (uint32_t)&end;
uint32_t _or1k_heap_end;
void *