wingo pushed a commit to branch wip-whippet
in repository guile.

commit 5ef7dd088f8efa50578ebca89db7d4c6829775d8
Author: Andy Wingo <wi...@pobox.com>
AuthorDate: Thu Jul 3 10:11:25 2025 +0200

    Small refactor to whippet embedder
    
    * libguile/whippet-embedder.h (gc_atomic_forward_retry_busy): Use
    scm_tc3_mask instead of 7.
---
 libguile/whippet-embedder.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libguile/whippet-embedder.h b/libguile/whippet-embedder.h
index e09f017f5..46fafefa6 100644
--- a/libguile/whippet-embedder.h
+++ b/libguile/whippet-embedder.h
@@ -199,7 +199,7 @@ gc_atomic_forward_retry_busy (struct gc_atomic_forward 
*fwd) {
   scm_t_bits tag = atomic_load_explicit (loc, memory_order_acquire);
   if (tag == scm_cell_type_busy)
     return 0;
-  if ((tag & 7) == scm_tc3_forwarded) {
+  if ((tag & scm_tc3_mask) == scm_tc3_forwarded) {
     fwd->state = GC_FORWARDING_STATE_FORWARDED;
     fwd->data = tag;
   } else {

Reply via email to