about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDan Gohman <dev@sunfishcode.online>2022-03-30 18:06:21 -0700
committerDan Gohman <dev@sunfishcode.online>2022-03-30 18:06:21 -0700
commitc89f11e1dbdbeb15057a3850e1a2348445caa4c2 (patch)
tree7221d0319fc39d4c00fd3d56b68bf35f4b340c13
parent3e7514670db841a7f0d7656f3b13b1c8b2c11599 (diff)
Fix library/std compilation on openbsd.
Fix a minor typo from #95241 which prevented compilation on x86_64-unknown-openbsd.
-rw-r--r--library/std/src/sys/unix/thread.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/unix/thread.rs b/library/std/src/sys/unix/thread.rs
index be70d00cb1a..bb4e4ee9aa7 100644
--- a/library/std/src/sys/unix/thread.rs
+++ b/library/std/src/sys/unix/thread.rs
@@ -522,7 +522,7 @@ pub mod guard {
             // new thread
             stack_ptr.addr() - current_stack.ss_size
         };
-        Some(stack_ptr.with_addr(stack_addr))
+        Some(stack_ptr.with_addr(stackaddr))
     }
 
     #[cfg(any(