From 5f7bef98f5c64ace0850972f0cc1b3af218c7834 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Thu, 31 Dec 2020 16:27:29 +0000 Subject: [PATCH] fixed an issue with an old compiler --- hawk/lib/val.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/hawk/lib/val.c b/hawk/lib/val.c index c11a40fb..d74222fa 100644 --- a/hawk/lib/val.c +++ b/hawk/lib/val.c @@ -2266,15 +2266,17 @@ hawk_bch_t* hawk_rtx_valtobcstrdupwithcmgr (hawk_rtx_t* rtx, const hawk_val_t* v slen = ((hawk_val_str_t*)v)->val.len; } #if defined(HAWK_OOCH_IS_BCH) - mbs = hawk_rtx_dupbchars(rtx, (ptr, slen); + mbs = hawk_rtx_dupbchars(rtx, ptr, slen); if (!mbs) return HAWK_NULL; if (len) *len = slen; #else - hawk_oow_t mbslen, wcslen; - wcslen = slen; - mbs = hawk_rtx_duputobcharswithcmgr(rtx, ptr, wcslen, &mbslen, cmgr); - if (!mbs) return HAWK_NULL; - if (len) *len = mbslen; + { + hawk_oow_t mbslen, wcslen; + wcslen = slen; + mbs = hawk_rtx_duputobcharswithcmgr(rtx, ptr, wcslen, &mbslen, cmgr); + if (!mbs) return HAWK_NULL; + if (len) *len = mbslen; + } #endif break; }