config: Improve _Configure_From_workspace()

Commit 4c09f4b3fe changed the cast from
size_t to ssize_t to try to fix an workspace issue on 16-bit
architectures.  This change was reverted by commit
7ff6115b8b for the workspace but not
_Configure_From_workspace().  Change the cast to uintptr_t to be in line
with the Heap Handler.
This commit is contained in:
Sebastian Huber
2020-02-25 07:18:36 +01:00
parent c7f748a100
commit cfe683859c
+1 -1
View File
@@ -1239,7 +1239,7 @@ const Thread_Idle_body _Thread_Idle_body = CONFIGURE_IDLE_TASK_BODY;
* may be applied.
*/
#define _Configure_From_workspace(_size) \
(ssize_t) (_Configure_Zero_or_One(_size) * \
(uintptr_t) (_Configure_Zero_or_One(_size) * \
_Configure_Align_up(_size + HEAP_BLOCK_HEADER_SIZE, \
_CONFIGURE_HEAP_MIN_BLOCK_SIZE))