Changed casting, according to Google style guidelines "readability/casting"
This commit is contained in:
parent
107d7669e7
commit
a78773a8ed
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ std::string ProtocolHasta::getStringForMethodv2(int method) {
|
||||||
strReturn.append(convertBytev2(0x01));
|
strReturn.append(convertBytev2(0x01));
|
||||||
sum += 0x01;
|
sum += 0x01;
|
||||||
|
|
||||||
int checksum = (((int)(sum/256)+1)*256+1) - sum;
|
int checksum = ((static_cast<int>(sum/256)+1)*256+1) - sum;
|
||||||
strReturn.append(convertBytev2(checksum));
|
strReturn.append(convertBytev2(checksum));
|
||||||
strReturn.append(1, 63);
|
strReturn.append(1, 63);
|
||||||
strReturn.append(1, 35);
|
strReturn.append(1, 35);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue