We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 711a3b0 commit fc064f4Copy full SHA for fc064f4
src/rt/arch/x86_64/context.h
@@ -46,8 +46,8 @@ class context {
46
// function being called causes the task to fail, then we have to avoid
47
// leaking space on the C stack.
48
inline void *alloc_stack(size_t nbytes) {
49
- uint32_t bot = regs.data[RUSTRT_RSP];
50
- uint32_t top = align_down(bot - nbytes);
+ uint64_t bot = regs.data[RUSTRT_RSP];
+ uint64_t top = align_down(bot - nbytes);
51
52
#ifdef HAVE_VALGRIND
53
(void)VALGRIND_MAKE_MEM_UNDEFINED(top - 4, bot - top + 4);
0 commit comments