mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
use uint64_t when adjusting stack ptr
This commit is contained in:
parent
711a3b066b
commit
fc064f4410
@ -46,8 +46,8 @@ public:
|
||||
// function being called causes the task to fail, then we have to avoid
|
||||
// leaking space on the C stack.
|
||||
inline void *alloc_stack(size_t nbytes) {
|
||||
uint32_t bot = regs.data[RUSTRT_RSP];
|
||||
uint32_t top = align_down(bot - nbytes);
|
||||
uint64_t bot = regs.data[RUSTRT_RSP];
|
||||
uint64_t top = align_down(bot - nbytes);
|
||||
|
||||
#ifdef HAVE_VALGRIND
|
||||
(void)VALGRIND_MAKE_MEM_UNDEFINED(top - 4, bot - top + 4);
|
||||
|
Loading…
Reference in New Issue
Block a user