From 956fe66750825fe888aeabc7e2f0760976cad752 Mon Sep 17 00:00:00 2001 From: Andrey Pfau Date: Wed, 6 Dec 2023 06:12:04 +0700 Subject: [PATCH] Fix priority issue in future compiler update using paren --- sources/modules/model.fc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/modules/model.fc b/sources/modules/model.fc index 9048e3c..c0de5eb 100644 --- a/sources/modules/model.fc +++ b/sources/modules/model.fc @@ -137,7 +137,7 @@ int apply_profit(int value, int value_profit, int profit) { } ;; Try to withdraw from withdraw balance - if ((remaining > 0) & ctx_member_withdraw > 0) { + if (((remaining > 0) & ctx_member_withdraw) > 0) { int delta = min(ctx_member_withdraw, remaining); ctx_member_withdraw = ctx_member_withdraw - delta; ctx_balance_withdraw = ctx_balance_withdraw - delta; @@ -310,4 +310,4 @@ int owned_balance() { ;; Update proxy_stake_lock_final = true; proxy_stake_until = finalized; -} \ No newline at end of file +}