made minor changes related to setioattr() and getioattr()

This commit is contained in:
2012-07-27 07:06:07 +00:00
parent 7aa4324a47
commit 9186415fa7
3 changed files with 51 additions and 40 deletions

View File

@ -292,6 +292,9 @@ int qse_htb_init (
QSE_ASSERTX (factor >= 0 && factor <= 100,
"The load factor should be between 0 and 100 inclusive. In the release mode, a value out of the range is adjusted to 100");
QSE_ASSERT (kscale >= 0 && kscale <= QSE_TYPE_MAX(qse_byte_t));
QSE_ASSERT (vscale >= 0 && vscale <= QSE_TYPE_MAX(qse_byte_t));
/* some initial adjustment */
if (capa <= 0) capa = 1;
if (factor > 100) factor = 100;