fixed wrong length type in moo_copy_uchars_to_ucstr() and moo_copy_bchars_to_bcstr()

This commit is contained in:
hyunghwan.chung 2020-05-20 14:25:41 +00:00
parent ce7d32e7ce
commit f40a4a5ee1
2 changed files with 4 additions and 4 deletions

View File

@ -465,14 +465,14 @@ MOO_EXPORT moo_oow_t moo_copy_bcstr (
MOO_EXPORT moo_oow_t moo_copy_uchars_to_ucstr (
moo_uch_t* dst,
moo_uch_t dlen,
moo_oow_t dlen,
const moo_uch_t* src,
moo_oow_t slen
);
MOO_EXPORT moo_oow_t moo_copy_bchars_to_bcstr (
moo_bch_t* dst,
moo_bch_t dlen,
moo_oow_t dlen,
const moo_bch_t* src,
moo_oow_t slen
);

View File

@ -272,7 +272,7 @@ void moo_copy_uchars_to_bchars (moo_bch_t* dst, const moo_uch_t* src, moo_oow_t
for (i = 0; i < len; i++) dst[i] = src[i];
}
moo_oow_t moo_copy_uchars_to_ucstr (moo_uch_t* dst, moo_uch_t dlen, const moo_uch_t* src, moo_oow_t slen)
moo_oow_t moo_copy_uchars_to_ucstr (moo_uch_t* dst, moo_oow_t dlen, const moo_uch_t* src, moo_oow_t slen)
{
moo_oow_t i;
if (dlen <= 0) return 0;
@ -282,7 +282,7 @@ moo_oow_t moo_copy_uchars_to_ucstr (moo_uch_t* dst, moo_uch_t dlen, const moo_uc
return i;
}
moo_oow_t moo_copy_bchars_to_bcstr (moo_bch_t* dst, moo_bch_t dlen, const moo_bch_t* src, moo_oow_t slen)
moo_oow_t moo_copy_bchars_to_bcstr (moo_bch_t* dst, moo_oow_t dlen, const moo_bch_t* src, moo_oow_t slen)
{
moo_oow_t i;
if (dlen <= 0) return 0;