added cast for compiler warning

This commit is contained in:
netp
2012-08-10 09:55:53 +00:00
parent b620b33e1b
commit 02d3be42cd
+1 -1
View File
@@ -182,7 +182,7 @@ bool WPValidateString(
/* assumption: non-empty also means must be "printable" */
*pErrorCode = ERROR_CODE_VALUE_OUT_OF_RANGE;
} else if (characterstring_length(&pValue->type.Character_String) >
iMaxLen) {
(uint16_t) iMaxLen) {
*pErrorClass = ERROR_CLASS_RESOURCES;
*pErrorCode = ERROR_CODE_NO_SPACE_TO_WRITE_PROPERTY;
} else