fixed wrong length type in hawk_copy_uchars_to_ucstr() and hawk_copy_bchars_to_bcstr()

This commit is contained in:
hyung-hwan 2020-05-20 13:03:27 +00:00
parent 610910ad9e
commit 0c46c2c145
2 changed files with 4 additions and 4 deletions

View File

@ -540,14 +540,14 @@ HAWK_EXPORT hawk_oow_t hawk_copy_bcstr (
HAWK_EXPORT hawk_oow_t hawk_copy_uchars_to_ucstr (
hawk_uch_t* dst,
hawk_uch_t dlen,
hawk_oow_t dlen,
const hawk_uch_t* src,
hawk_oow_t slen
);
HAWK_EXPORT hawk_oow_t hawk_copy_bchars_to_bcstr (
hawk_bch_t* dst,
hawk_bch_t dlen,
hawk_oow_t dlen,
const hawk_bch_t* src,
hawk_oow_t slen
);

View File

@ -339,7 +339,7 @@ void hawk_copy_uchars_to_bchars (hawk_bch_t* dst, const hawk_uch_t* src, hawk_oo
for (i = 0; i < len; i++) dst[i] = src[i];
}
hawk_oow_t hawk_copy_uchars_to_ucstr (hawk_uch_t* dst, hawk_uch_t dlen, const hawk_uch_t* src, hawk_oow_t slen)
hawk_oow_t hawk_copy_uchars_to_ucstr (hawk_uch_t* dst, hawk_oow_t dlen, const hawk_uch_t* src, hawk_oow_t slen)
{
hawk_oow_t i;
if (dlen <= 0) return 0;
@ -349,7 +349,7 @@ hawk_oow_t hawk_copy_uchars_to_ucstr (hawk_uch_t* dst, hawk_uch_t dlen, const ha
return i;
}
hawk_oow_t hawk_copy_bchars_to_bcstr (hawk_bch_t* dst, hawk_bch_t dlen, const hawk_bch_t* src, hawk_oow_t slen)
hawk_oow_t hawk_copy_bchars_to_bcstr (hawk_bch_t* dst, hawk_oow_t dlen, const hawk_bch_t* src, hawk_oow_t slen)
{
hawk_oow_t i;
if (dlen <= 0) return 0;