From 72c4d5a3a08a6c921e088b0e53de9990d0948b2c Mon Sep 17 00:00:00 2001 From: john30 Date: Sun, 16 Oct 2016 12:21:01 +0200 Subject: [PATCH] compiler warning --- src/lib/ebus/data.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/ebus/data.cpp b/src/lib/ebus/data.cpp index c0ddcae8..03ff347c 100644 --- a/src/lib/ebus/data.cpp +++ b/src/lib/ebus/data.cpp @@ -243,7 +243,7 @@ result_t SingleDataField::create(const string id, const unsigned char length, const PartType partType, int divisor, map 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; }