compiler warning

This commit is contained in:
john30
2016-10-16 12:21:01 +02:00
parent abc2f2807d
commit 72c4d5a3a0
+1 -1
View File
@@ -243,7 +243,7 @@ result_t SingleDataField::create(const string id, const unsigned char length,
const PartType partType, int divisor, map<unsigned int, string> values,
SingleDataField* &returnField)
{
DataType* dataType = DataTypeList::getInstance()->get(id, length==REMAIN_LEN ? 0 : length);
DataType* dataType = DataTypeList::getInstance()->get(id, length==REMAIN_LEN ? (unsigned char)0 : length);
if (!dataType) {
return RESULT_ERR_NOTFOUND;
}