Romasmi / cpp-practice

0 stars 0 forks source link

Замечания по Crypt #12

Closed alexey-malov closed 5 years ago

alexey-malov commented 5 years ago
1>c:\teaching\ips\2019\smirnov\cpp_oop_practice\lab_1\crypt\crypt.cpp(77): warning C4114: same type qualifier used more than once
1>c:\teaching\ips\2019\smirnov\cpp_oop_practice\lab_1\crypt\crypt.cpp(92): warning C4114: same type qualifier used more than once
alexey-malov commented 5 years ago
alexey-malov commented 5 years ago
alexey-malov commented 5 years ago
void CopyByte(const uint8_t byteHolder, uint8_t& byteGetter, const uint8_t position, const uint8_t newPosition)
{
    uint8_t mask = 0x1;
    mask = (mask & (byteHolder >> position)) << newPosition;
    byteGetter = byteGetter | mask;
}