From 87852e5f2a3983e21c99a18f8503a511a158cecd Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Sun, 5 Apr 2020 21:54:11 +0200 Subject: [PATCH] replaced getSerializedSize returnvalue with size_t --- action/ActionHelper.cpp | 2 +- action/CommandActionHelper.cpp | 2 +- container/FixedMap.h | 2 +- container/IndexedRingMemoryArray.h | 6 +++--- datapool/DataPoolParameterWrapper.cpp | 2 +- datapool/DataPoolParameterWrapper.h | 2 +- datapool/DataSet.cpp | 4 ++-- datapool/DataSet.h | 2 +- datapool/PIDReader.h | 2 +- datapool/PoolRawAccess.cpp | 2 +- datapool/PoolRawAccess.h | 2 +- datapool/PoolVariable.h | 2 +- datapool/PoolVector.h | 2 +- devicehandlers/DeviceTmReportingWrapper.cpp | 2 +- devicehandlers/DeviceTmReportingWrapper.h | 2 +- events/eventmatching/EventRangeMatcherBase.h | 2 +- globalfunctions/Type.cpp | 2 +- globalfunctions/Type.h | 2 +- globalfunctions/matching/MatchTree.h | 2 +- globalfunctions/matching/RangeMatcher.h | 2 +- monitoring/LimitViolationReporter.cpp | 2 +- parameters/ParameterWrapper.cpp | 2 +- parameters/ParameterWrapper.h | 2 +- power/Fuse.cpp | 2 +- power/PowerComponent.cpp | 2 +- power/PowerComponent.h | 2 +- serialize/SerialArrayListAdapter.h | 2 +- serialize/SerialBufferAdapter.cpp | 2 +- serialize/SerialBufferAdapter.h | 2 +- serialize/SerialFixedArrayListAdapter.h | 2 +- serialize/SerialLinkedListAdapter.h | 2 +- serialize/SerializeElement.h | 2 +- serialize/SerializeIF.h | 2 +- subsystem/Subsystem.cpp | 2 +- subsystem/modes/ModeDefinitions.h | 2 +- tmstorage/TmStorePackets.h | 4 ++-- tmtcpacket/packetmatcher/ApidMatcher.h | 2 +- tmtcpacket/packetmatcher/ServiceMatcher.h | 2 +- tmtcpacket/packetmatcher/SubserviceMatcher.h | 2 +- tmtcpacket/pus/TmPacketStored.cpp | 2 +- 40 files changed, 44 insertions(+), 44 deletions(-) diff --git a/action/ActionHelper.cpp b/action/ActionHelper.cpp index 96a4824c..ef9f06a9 100644 --- a/action/ActionHelper.cpp +++ b/action/ActionHelper.cpp @@ -72,7 +72,7 @@ ReturnValue_t ActionHelper::reportData(MessageQueueId_t reportTo, CommandMessage reply; store_address_t storeAddress; uint8_t *dataPtr; - uint32_t maxSize = data->getSerializedSize(); + size_t maxSize = data->getSerializedSize(); if (maxSize == 0) { //No error, there's simply nothing to report. return HasReturnvaluesIF::RETURN_OK; diff --git a/action/CommandActionHelper.cpp b/action/CommandActionHelper.cpp index e670121f..77295401 100644 --- a/action/CommandActionHelper.cpp +++ b/action/CommandActionHelper.cpp @@ -20,7 +20,7 @@ ReturnValue_t CommandActionHelper::commandAction(object_id_t commandTo, } store_address_t storeId; uint8_t* storePointer; - uint32_t maxSize = data->getSerializedSize(); + size_t maxSize = data->getSerializedSize(); ReturnValue_t result = ipcStore->getFreeElement(&storeId, maxSize, &storePointer); if (result != HasReturnvaluesIF::RETURN_OK) { diff --git a/container/FixedMap.h b/container/FixedMap.h index 314fb45a..23a79aef 100644 --- a/container/FixedMap.h +++ b/container/FixedMap.h @@ -188,7 +188,7 @@ public: return result; } - virtual uint32_t getSerializedSize() const { + virtual size_t getSerializedSize() const { uint32_t printSize = sizeof(_size); uint32_t i = 0; diff --git a/container/IndexedRingMemoryArray.h b/container/IndexedRingMemoryArray.h index 4ab174f4..8682780a 100644 --- a/container/IndexedRingMemoryArray.h +++ b/container/IndexedRingMemoryArray.h @@ -159,7 +159,7 @@ public: uint32_t maxNrOfIndices = floor(static_cast(size)/static_cast(bytesPerBlock)); //Calculate the Size needeed for the index itself - uint32_t serializedSize = 0; + size_t serializedSize = 0; if(additionalInfo!=NULL) { serializedSize += additionalInfo->getSerializedSize(); } @@ -548,9 +548,9 @@ public: * Get the serialized Size of the index * @return The serialized size of the index */ - uint32_t getSerializedSize() const { + size_t getSerializedSize() const { - uint32_t size = 0; + size_t size = 0; if(additionalInfo!=NULL){ size += additionalInfo->getSerializedSize(); } diff --git a/datapool/DataPoolParameterWrapper.cpp b/datapool/DataPoolParameterWrapper.cpp index 88ac51a6..aa194b61 100644 --- a/datapool/DataPoolParameterWrapper.cpp +++ b/datapool/DataPoolParameterWrapper.cpp @@ -69,7 +69,7 @@ ReturnValue_t DataPoolParameterWrapper::serialize(uint8_t** buffer, } //same as ParameterWrapper -uint32_t DataPoolParameterWrapper::getSerializedSize() const { +size_t DataPoolParameterWrapper::getSerializedSize() const { uint32_t serializedSize = 0; serializedSize += type.getSerializedSize(); serializedSize += sizeof(rows); diff --git a/datapool/DataPoolParameterWrapper.h b/datapool/DataPoolParameterWrapper.h index 32ba6509..c9631b9c 100644 --- a/datapool/DataPoolParameterWrapper.h +++ b/datapool/DataPoolParameterWrapper.h @@ -14,7 +14,7 @@ public: virtual ReturnValue_t serialize(uint8_t** buffer, size_t* size, const size_t max_size, bool bigEndian) const; - virtual uint32_t getSerializedSize() const; + virtual size_t getSerializedSize() const; virtual ReturnValue_t deSerialize(const uint8_t** buffer, int32_t* size, bool bigEndian); diff --git a/datapool/DataSet.cpp b/datapool/DataSet.cpp index ccd9fd3c..90baf063 100644 --- a/datapool/DataSet.cpp +++ b/datapool/DataSet.cpp @@ -119,8 +119,8 @@ ReturnValue_t DataSet::serialize(uint8_t** buffer, size_t* size, return result; } -uint32_t DataSet::getSerializedSize() const { - uint32_t size = 0; +size_t DataSet::getSerializedSize() const { + size_t size = 0; for (uint16_t count = 0; count < fill_count; count++) { size += registeredVariables[count]->getSerializedSize(); } diff --git a/datapool/DataSet.h b/datapool/DataSet.h index 0732feb3..9bcdb892 100644 --- a/datapool/DataSet.h +++ b/datapool/DataSet.h @@ -124,7 +124,7 @@ public: ReturnValue_t serialize(uint8_t** buffer, size_t* size, const size_t max_size, bool bigEndian) const; - uint32_t getSerializedSize() const; + virtual size_t getSerializedSize() const; ReturnValue_t deSerialize(const uint8_t** buffer, int32_t* size, bool bigEndian); diff --git a/datapool/PIDReader.h b/datapool/PIDReader.h index 68e70e86..d6b10b65 100644 --- a/datapool/PIDReader.h +++ b/datapool/PIDReader.h @@ -132,7 +132,7 @@ public: bigEndian); } - virtual uint32_t getSerializedSize() const { + virtual size_t getSerializedSize() const { return SerializeAdapter::getSerializedSize(&value); } diff --git a/datapool/PoolRawAccess.cpp b/datapool/PoolRawAccess.cpp index 63dc5b49..16d6562e 100644 --- a/datapool/PoolRawAccess.cpp +++ b/datapool/PoolRawAccess.cpp @@ -193,7 +193,7 @@ uint16_t PoolRawAccess::getSizeTillEnd() const { } -uint32_t PoolRawAccess::getSerializedSize() const { +size_t PoolRawAccess::getSerializedSize() const { return typeSize; } diff --git a/datapool/PoolRawAccess.h b/datapool/PoolRawAccess.h index 1599a40e..73a609ff 100644 --- a/datapool/PoolRawAccess.h +++ b/datapool/PoolRawAccess.h @@ -125,7 +125,7 @@ public: */ uint16_t getSizeTillEnd() const; - uint32_t getSerializedSize() const; + size_t getSerializedSize() const; ReturnValue_t deSerialize(const uint8_t** buffer, int32_t* size, bool bigEndian); diff --git a/datapool/PoolVariable.h b/datapool/PoolVariable.h index 76418ab8..351ffec3 100644 --- a/datapool/PoolVariable.h +++ b/datapool/PoolVariable.h @@ -199,7 +199,7 @@ public: bigEndian); } - virtual uint32_t getSerializedSize() const { + virtual size_t getSerializedSize() const { return SerializeAdapter::getSerializedSize(&value); } diff --git a/datapool/PoolVector.h b/datapool/PoolVector.h index 154cb18a..a21f31d2 100644 --- a/datapool/PoolVector.h +++ b/datapool/PoolVector.h @@ -211,7 +211,7 @@ public: return result; } - virtual uint32_t getSerializedSize() const { + virtual size_t getSerializedSize() const { return vector_size * SerializeAdapter::getSerializedSize(value); } diff --git a/devicehandlers/DeviceTmReportingWrapper.cpp b/devicehandlers/DeviceTmReportingWrapper.cpp index 2be37dd4..344a1dc1 100644 --- a/devicehandlers/DeviceTmReportingWrapper.cpp +++ b/devicehandlers/DeviceTmReportingWrapper.cpp @@ -26,7 +26,7 @@ ReturnValue_t DeviceTmReportingWrapper::serialize(uint8_t** buffer, return data->serialize(buffer, size, max_size, bigEndian); } -uint32_t DeviceTmReportingWrapper::getSerializedSize() const { +size_t DeviceTmReportingWrapper::getSerializedSize() const { return sizeof(objectId) + sizeof(ActionId_t) + data->getSerializedSize(); } diff --git a/devicehandlers/DeviceTmReportingWrapper.h b/devicehandlers/DeviceTmReportingWrapper.h index ecdeca49..1582ff48 100644 --- a/devicehandlers/DeviceTmReportingWrapper.h +++ b/devicehandlers/DeviceTmReportingWrapper.h @@ -14,7 +14,7 @@ public: virtual ReturnValue_t serialize(uint8_t** buffer, size_t* size, const size_t max_size, bool bigEndian) const; - virtual uint32_t getSerializedSize() const; + virtual size_t getSerializedSize() const; virtual ReturnValue_t deSerialize(const uint8_t** buffer, int32_t* size, bool bigEndian); diff --git a/events/eventmatching/EventRangeMatcherBase.h b/events/eventmatching/EventRangeMatcherBase.h index 3906b627..0f096b9c 100644 --- a/events/eventmatching/EventRangeMatcherBase.h +++ b/events/eventmatching/EventRangeMatcherBase.h @@ -15,7 +15,7 @@ public: const size_t max_size, bool bigEndian) const { return rangeMatcher.serialize(buffer, size, max_size, bigEndian); } - uint32_t getSerializedSize() const { + size_t getSerializedSize() const { return rangeMatcher.getSerializedSize(); } ReturnValue_t deSerialize(const uint8_t** buffer, int32_t* size, diff --git a/globalfunctions/Type.cpp b/globalfunctions/Type.cpp index e9bbab52..0d6d7c1d 100644 --- a/globalfunctions/Type.cpp +++ b/globalfunctions/Type.cpp @@ -81,7 +81,7 @@ ReturnValue_t Type::serialize(uint8_t** buffer, size_t* size, } -uint32_t Type::getSerializedSize() const { +size_t Type::getSerializedSize() const { uint8_t dontcare = 0; return 2 * SerializeAdapter::getSerializedSize(&dontcare); } diff --git a/globalfunctions/Type.h b/globalfunctions/Type.h index 8d595daf..e6413d2d 100644 --- a/globalfunctions/Type.h +++ b/globalfunctions/Type.h @@ -42,7 +42,7 @@ public: virtual ReturnValue_t serialize(uint8_t** buffer, size_t* size, const size_t max_size, bool bigEndian) const; - virtual uint32_t getSerializedSize() const; + virtual size_t getSerializedSize() const; virtual ReturnValue_t deSerialize(const uint8_t** buffer, int32_t* size, bool bigEndian); diff --git a/globalfunctions/matching/MatchTree.h b/globalfunctions/matching/MatchTree.h index ccf464f0..3b8e1942 100644 --- a/globalfunctions/matching/MatchTree.h +++ b/globalfunctions/matching/MatchTree.h @@ -86,7 +86,7 @@ public: return result; } - uint32_t getSerializedSize() const { + size_t getSerializedSize() const { //Analogous to serialize! uint32_t size = 1; //One for count iterator iter = this->begin(); diff --git a/globalfunctions/matching/RangeMatcher.h b/globalfunctions/matching/RangeMatcher.h index 8e0ae850..c93e7919 100644 --- a/globalfunctions/matching/RangeMatcher.h +++ b/globalfunctions/matching/RangeMatcher.h @@ -40,7 +40,7 @@ public: return SerializeAdapter::serialize(&inverted, buffer, size, max_size, bigEndian); } - uint32_t getSerializedSize() const { + size_t getSerializedSize() const { return sizeof(lowerBound) + sizeof(upperBound) + sizeof(bool); } diff --git a/monitoring/LimitViolationReporter.cpp b/monitoring/LimitViolationReporter.cpp index 77c3dad1..234a0bff 100644 --- a/monitoring/LimitViolationReporter.cpp +++ b/monitoring/LimitViolationReporter.cpp @@ -17,7 +17,7 @@ ReturnValue_t LimitViolationReporter::sendLimitViolationReport(const SerializeIF } store_address_t storeId; uint8_t* dataTarget = NULL; - uint32_t maxSize = data->getSerializedSize(); + size_t maxSize = data->getSerializedSize(); if (maxSize > MonitoringIF::VIOLATION_REPORT_MAX_SIZE) { return MonitoringIF::INVALID_SIZE; } diff --git a/parameters/ParameterWrapper.cpp b/parameters/ParameterWrapper.cpp index 501c7c4d..f359a745 100644 --- a/parameters/ParameterWrapper.cpp +++ b/parameters/ParameterWrapper.cpp @@ -77,7 +77,7 @@ ReturnValue_t ParameterWrapper::serialize(uint8_t** buffer, size_t* size, return result; } -uint32_t ParameterWrapper::getSerializedSize() const { +size_t ParameterWrapper::getSerializedSize() const { uint32_t serializedSize = 0; serializedSize += type.getSerializedSize(); serializedSize += sizeof(rows); diff --git a/parameters/ParameterWrapper.h b/parameters/ParameterWrapper.h index a78e586d..6681f7c4 100644 --- a/parameters/ParameterWrapper.h +++ b/parameters/ParameterWrapper.h @@ -28,7 +28,7 @@ public: virtual ReturnValue_t serialize(uint8_t** buffer, size_t* size, const size_t max_size, bool bigEndian) const; - virtual uint32_t getSerializedSize() const; + virtual size_t getSerializedSize() const; virtual ReturnValue_t deSerialize(const uint8_t** buffer, int32_t* size, bool bigEndian); diff --git a/power/Fuse.cpp b/power/Fuse.cpp index 93e98290..04adac80 100644 --- a/power/Fuse.cpp +++ b/power/Fuse.cpp @@ -100,7 +100,7 @@ ReturnValue_t Fuse::serialize(uint8_t** buffer, size_t* size, } uint32_t Fuse::getSerializedSize() const { - uint32_t size = 0; + size_t size = 0; for (DeviceList::const_iterator iter = devices.begin(); iter != devices.end(); iter++) { size += (*iter)->getSerializedSize(); diff --git a/power/PowerComponent.cpp b/power/PowerComponent.cpp index 83ed0e68..b7158e62 100644 --- a/power/PowerComponent.cpp +++ b/power/PowerComponent.cpp @@ -28,7 +28,7 @@ ReturnValue_t PowerComponent::serialize(uint8_t** buffer, size_t* size, bigEndian); } -uint32_t PowerComponent::getSerializedSize() const { +size_t PowerComponent::getSerializedSize() const { return sizeof(min) + sizeof(max); } diff --git a/power/PowerComponent.h b/power/PowerComponent.h index de08e5ec..97341667 100644 --- a/power/PowerComponent.h +++ b/power/PowerComponent.h @@ -22,7 +22,7 @@ public: ReturnValue_t serialize(uint8_t** buffer, size_t* size, const size_t max_size, bool bigEndian) const; - uint32_t getSerializedSize() const; + size_t getSerializedSize() const; ReturnValue_t deSerialize(const uint8_t** buffer, int32_t* size, bool bigEndian); diff --git a/serialize/SerialArrayListAdapter.h b/serialize/SerialArrayListAdapter.h index 0bc0a97b..5274c488 100644 --- a/serialize/SerialArrayListAdapter.h +++ b/serialize/SerialArrayListAdapter.h @@ -41,7 +41,7 @@ public: return result; } - virtual uint32_t getSerializedSize() const { + virtual size_t getSerializedSize() const { return getSerializedSize(adaptee); } diff --git a/serialize/SerialBufferAdapter.cpp b/serialize/SerialBufferAdapter.cpp index a125ef44..83fda418 100644 --- a/serialize/SerialBufferAdapter.cpp +++ b/serialize/SerialBufferAdapter.cpp @@ -54,7 +54,7 @@ ReturnValue_t SerialBufferAdapter::serialize(uint8_t** buffer, size_t* } template -uint32_t SerialBufferAdapter::getSerializedSize() const { +size_t SerialBufferAdapter::getSerializedSize() const { if (m_serialize_length) { return m_buffer_length + AutoSerializeAdapter::getSerializedSize(&m_buffer_length); } else { diff --git a/serialize/SerialBufferAdapter.h b/serialize/SerialBufferAdapter.h index f8ff122e..0c3d4dd6 100644 --- a/serialize/SerialBufferAdapter.h +++ b/serialize/SerialBufferAdapter.h @@ -43,7 +43,7 @@ public: virtual ReturnValue_t serialize(uint8_t** buffer, size_t* size, const size_t max_size, bool bigEndian) const; - virtual uint32_t getSerializedSize() const; + virtual size_t getSerializedSize() const; virtual ReturnValue_t deSerialize(const uint8_t** buffer, int32_t* size, bool bigEndian); diff --git a/serialize/SerialFixedArrayListAdapter.h b/serialize/SerialFixedArrayListAdapter.h index e10322f9..573d3314 100644 --- a/serialize/SerialFixedArrayListAdapter.h +++ b/serialize/SerialFixedArrayListAdapter.h @@ -37,7 +37,7 @@ public: return SerialArrayListAdapter::serialize(this, buffer, size, max_size, bigEndian); } - uint32_t getSerializedSize() const { + size_t getSerializedSize() const { return SerialArrayListAdapter::getSerializedSize(this); } ReturnValue_t deSerialize(const uint8_t** buffer, int32_t* size, diff --git a/serialize/SerialLinkedListAdapter.h b/serialize/SerialLinkedListAdapter.h index 196432af..0865faa5 100644 --- a/serialize/SerialLinkedListAdapter.h +++ b/serialize/SerialLinkedListAdapter.h @@ -88,7 +88,7 @@ public: } return result; } - virtual uint32_t getSerializedSize() const { + virtual size_t getSerializedSize() const { if (printCount) { return SerialLinkedListAdapter::getSerializedSize() + sizeof(count_t); diff --git a/serialize/SerializeElement.h b/serialize/SerializeElement.h index 81f557a5..fe9d5d71 100644 --- a/serialize/SerializeElement.h +++ b/serialize/SerializeElement.h @@ -37,7 +37,7 @@ public: return SerializeAdapter::serialize(&entry, buffer, size, max_size, bigEndian); } - uint32_t getSerializedSize() const { + size_t getSerializedSize() const { return SerializeAdapter::getSerializedSize(&entry); } diff --git a/serialize/SerializeIF.h b/serialize/SerializeIF.h index d9d361c1..a9f40a08 100644 --- a/serialize/SerializeIF.h +++ b/serialize/SerializeIF.h @@ -40,7 +40,7 @@ public: virtual ReturnValue_t serialize(uint8_t** buffer, size_t* size, const size_t max_size, bool bigEndian) const = 0; - virtual uint32_t getSerializedSize() const = 0; + virtual size_t getSerializedSize() const = 0; virtual ReturnValue_t deSerialize(const uint8_t** buffer, int32_t* size, bool bigEndian) = 0; diff --git a/subsystem/Subsystem.cpp b/subsystem/Subsystem.cpp index 8b7f3851..1c4bee33 100644 --- a/subsystem/Subsystem.cpp +++ b/subsystem/Subsystem.cpp @@ -601,7 +601,7 @@ void Subsystem::transitionFailed(ReturnValue_t failureCode, void Subsystem::sendSerializablesAsCommandMessage(Command_t command, SerializeIF** elements, uint8_t count) { ReturnValue_t result; - uint32_t maxSize = 0; + size_t maxSize = 0; for (uint8_t i = 0; i < count; i++) { maxSize += elements[i]->getSerializedSize(); } diff --git a/subsystem/modes/ModeDefinitions.h b/subsystem/modes/ModeDefinitions.h index 8a88eb92..406f9583 100644 --- a/subsystem/modes/ModeDefinitions.h +++ b/subsystem/modes/ModeDefinitions.h @@ -49,7 +49,7 @@ public: } - virtual uint32_t getSerializedSize() const { + virtual size_t getSerializedSize() const { return sizeof(value1) + sizeof(value2) + sizeof(value3) + sizeof(value4); } diff --git a/tmstorage/TmStorePackets.h b/tmstorage/TmStorePackets.h index b31b37cb..b6c63b91 100644 --- a/tmstorage/TmStorePackets.h +++ b/tmstorage/TmStorePackets.h @@ -44,7 +44,7 @@ public: } - uint32_t getSerializedSize() const { + size_t getSerializedSize() const { return sizeof(apid) + sizeof(ssc); } @@ -244,7 +244,7 @@ public: return adapter.serialize(buffer,size,max_size,bigEndian); } - uint32_t getSerializedSize() const { + size_t getSerializedSize() const { uint32_t size = 0; size += AutoSerializeAdapter::getSerializedSize(&apid); size += AutoSerializeAdapter::getSerializedSize(&sourceSequenceCount); diff --git a/tmtcpacket/packetmatcher/ApidMatcher.h b/tmtcpacket/packetmatcher/ApidMatcher.h index 0140340b..37b91bd3 100644 --- a/tmtcpacket/packetmatcher/ApidMatcher.h +++ b/tmtcpacket/packetmatcher/ApidMatcher.h @@ -27,7 +27,7 @@ public: return SerializeAdapter::serialize(&apid, buffer, size, max_size, bigEndian); } - uint32_t getSerializedSize() const { + size_t getSerializedSize() const { return SerializeAdapter::getSerializedSize(&apid); } ReturnValue_t deSerialize(const uint8_t** buffer, int32_t* size, diff --git a/tmtcpacket/packetmatcher/ServiceMatcher.h b/tmtcpacket/packetmatcher/ServiceMatcher.h index be2dd2f5..31502053 100644 --- a/tmtcpacket/packetmatcher/ServiceMatcher.h +++ b/tmtcpacket/packetmatcher/ServiceMatcher.h @@ -27,7 +27,7 @@ public: return SerializeAdapter::serialize(&service, buffer, size, max_size, bigEndian); } - uint32_t getSerializedSize() const { + size_t getSerializedSize() const { return SerializeAdapter::getSerializedSize(&service); } ReturnValue_t deSerialize(const uint8_t** buffer, int32_t* size, diff --git a/tmtcpacket/packetmatcher/SubserviceMatcher.h b/tmtcpacket/packetmatcher/SubserviceMatcher.h index de62e183..8b872876 100644 --- a/tmtcpacket/packetmatcher/SubserviceMatcher.h +++ b/tmtcpacket/packetmatcher/SubserviceMatcher.h @@ -25,7 +25,7 @@ public: return SerializeAdapter::serialize(&subService, buffer, size, max_size, bigEndian); } - uint32_t getSerializedSize() const { + size_t getSerializedSize() const { return SerializeAdapter::getSerializedSize(&subService); } ReturnValue_t deSerialize(const uint8_t** buffer, int32_t* size, diff --git a/tmtcpacket/pus/TmPacketStored.cpp b/tmtcpacket/pus/TmPacketStored.cpp index c66e3324..b60f6c7e 100644 --- a/tmtcpacket/pus/TmPacketStored.cpp +++ b/tmtcpacket/pus/TmPacketStored.cpp @@ -42,7 +42,7 @@ TmPacketStored::TmPacketStored(uint16_t apid, uint8_t service, if (!checkAndSetStore()) { return; } - uint32_t sourceDataSize = 0; + size_t sourceDataSize = 0; if (content != NULL) { sourceDataSize += content->getSerializedSize(); }