avoid zero resolution

This commit is contained in:
john30
2017-02-23 18:07:06 +01:00
parent 75150923c9
commit ae58a2a737
+1 -1
View File
@@ -338,7 +338,7 @@ class DateTimeDataType : public DataType {
*/
DateTimeDataType(const string id, const unsigned char bitCount, const uint16_t flags, const unsigned int replacement,
const bool hasDate, const bool hasTime, const int16_t resolution)
: DataType(id, bitCount, flags, replacement), m_hasDate(hasDate), m_hasTime(hasTime), m_resolution(resolution) {}
: DataType(id, bitCount, flags, replacement), m_hasDate(hasDate), m_hasTime(hasTime), m_resolution(resolution == 0 ? 1 : resolution) {}
/**
* Destructor.