From eedd085e8ddfcfe037d9419aed34f8a5a8a5c4dc Mon Sep 17 00:00:00 2001 From: Chris Penner Date: Wed, 13 Nov 2024 09:40:35 -0800 Subject: [PATCH] Fix stack debugging --- unison-runtime/src/Unison/Runtime/Stack.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unison-runtime/src/Unison/Runtime/Stack.hs b/unison-runtime/src/Unison/Runtime/Stack.hs index f879fbeb5e..08f167de46 100644 --- a/unison-runtime/src/Unison/Runtime/Stack.hs +++ b/unison-runtime/src/Unison/Runtime/Stack.hs @@ -666,7 +666,7 @@ peekI _stk@(Stack _ _ sp ustk _) = do peekOffI :: DebugCallStack => Stack -> Off -> IO Int peekOffI _stk@(Stack _ _ sp ustk _) i = do #ifdef STACK_CHECK - assertUnboxed _stk 0 + assertUnboxed _stk i #endif readByteArray ustk (sp - i) {-# INLINE peekOffI #-}