small fixes

This commit is contained in:
2020-08-06 15:17:15 +03:00
parent 26742a1fc3
commit e08f805525
3 changed files with 7 additions and 7 deletions

View File

@@ -1,9 +1,9 @@
cmake_minimum_required(VERSION 3.0)
cmake_policy(SET CMP0017 NEW) # need include() with .cmake
project(pip)
set(_PIP_MAJOR 1)
set(_PIP_MINOR 99)
set(_PIP_REVISION 3)
set(_PIP_MAJOR 2)
set(_PIP_MINOR 0)
set(_PIP_REVISION 0)
set(_PIP_SUFFIX _prebeta)
set(_PIP_COMPANY SHS)
set(_PIP_DOMAIN org.SHS)

View File

@@ -30,11 +30,11 @@ PICloudClient::~PICloudClient() {
bool PICloudClient::openDevice() {
return false;
}
bool PICloudClient::closeDevice() {
return false;
}

View File

@@ -396,8 +396,8 @@ PIByteArray & operator >>(PIByteArray & s, PIByteArray & v) {
}
v.resize(sz);
if (sz > 0) {
memcpy(v.data(), s.data(), v.size());
s.remove(0, v.size());
memcpy(v.data(), s.data(), sz);
s.remove(0, sz);
}
return s;
}