[DEBUG] Correct the MacOs port of size_t
This commit is contained in:
parent
67bf580102
commit
8bf0bfa9fb
@ -270,6 +270,13 @@ namespace zeus {
|
||||
memcpy(&data[currentOffset], &_value, 8);
|
||||
m_parameter.push_back(std::make_pair(2,data));
|
||||
}
|
||||
#if defined(__TARGET_OS__MacOs) \
|
||||
|| defined(__TARGET_OS__IOs)
|
||||
template<>
|
||||
void BufferParameter::addParameter<size_t>(uint16_t _paramId, const size_t& _value) {
|
||||
addParameter(_paramId, uint64_t(_value));
|
||||
}
|
||||
#endif
|
||||
template<>
|
||||
void BufferParameter::addParameter<float>(uint16_t _paramId, const float& _value) {
|
||||
std::vector<uint8_t> data;
|
||||
|
@ -203,6 +203,13 @@ namespace zeus {
|
||||
return 0;
|
||||
}
|
||||
|
||||
#if defined(__TARGET_OS__MacOs) \
|
||||
|| defined(__TARGET_OS__IOs)
|
||||
template<>
|
||||
size_t BufferParameter::getParameter<size_t>(int32_t _id) const {
|
||||
return getParameter<uint64_t>(_id);
|
||||
}
|
||||
#endif
|
||||
template<>
|
||||
int8_t BufferParameter::getParameter<int8_t>(int32_t _id) const {
|
||||
zeus::ParamType type = getParameterType(_id);
|
||||
|
Loading…
x
Reference in New Issue
Block a user