From df111bc279aed8bd9546b92776db0595c06e9bf5 Mon Sep 17 00:00:00 2001 From: Richard Holland Date: Thu, 2 Jun 2022 19:53:57 +0000 Subject: [PATCH] wce calc error --- src/ripple/app/hook/Guard.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ripple/app/hook/Guard.h b/src/ripple/app/hook/Guard.h index 8abab7fb5..524baf133 100644 --- a/src/ripple/app/hook/Guard.h +++ b/src/ripple/app/hook/Guard.h @@ -258,7 +258,7 @@ check_guard( SIGNED_LEB(); } - uint32_t iteration_bound = 1; + uint32_t iteration_bound = (current->parent == 0 ? 1 : current->parent->iteration_bound); if (instr == 0x03U) { // now look for the guard call