From 4ee104e1ee84d9b25697c1615b80884f56870fc6 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Sun, 8 Mar 2020 15:09:09 +0000 Subject: [PATCH] minor touch up --- hawk/lib/fnc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hawk/lib/fnc.c b/hawk/lib/fnc.c index 49643c73..2cb34a1b 100644 --- a/hawk/lib/fnc.c +++ b/hawk/lib/fnc.c @@ -1235,18 +1235,18 @@ static int __substitute (hawk_rtx_t* rtx, hawk_int_t max_count) { int n; n = hawk_rtx_setrec(rtx, 0, HAWK_OOECS_OOCS(&new), 0); - if (n <= -1) goto oops; + if (HAWK_UNLIKELY(n <= -1)) goto oops; } else { int n; v = hawk_rtx_makestrvalwithoocs(rtx, HAWK_OOECS_OOCS(&new)); - if (v == HAWK_NULL) goto oops; + if (HAWK_UNLIKELY(!v)) goto oops; hawk_rtx_refupval (rtx, v); n = hawk_rtx_setrefval(rtx, (hawk_val_ref_t*)a2, v); hawk_rtx_refdownval (rtx, v); - if (n <= -1) goto oops; + if (HAWK_UNLIKELY(n <= -1)) goto oops; } }