fixed an issue with an old compiler
This commit is contained in:
parent
dd2d3d4ccd
commit
5f7bef98f5
@ -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;
|
slen = ((hawk_val_str_t*)v)->val.len;
|
||||||
}
|
}
|
||||||
#if defined(HAWK_OOCH_IS_BCH)
|
#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 (!mbs) return HAWK_NULL;
|
||||||
if (len) *len = slen;
|
if (len) *len = slen;
|
||||||
#else
|
#else
|
||||||
hawk_oow_t mbslen, wcslen;
|
{
|
||||||
wcslen = slen;
|
hawk_oow_t mbslen, wcslen;
|
||||||
mbs = hawk_rtx_duputobcharswithcmgr(rtx, ptr, wcslen, &mbslen, cmgr);
|
wcslen = slen;
|
||||||
if (!mbs) return HAWK_NULL;
|
mbs = hawk_rtx_duputobcharswithcmgr(rtx, ptr, wcslen, &mbslen, cmgr);
|
||||||
if (len) *len = mbslen;
|
if (!mbs) return HAWK_NULL;
|
||||||
|
if (len) *len = mbslen;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user