mirror of
https://github.com/status-im/QR-Code-generator.git
synced 2026-08-31 01:31:10 +00:00
Tweaked C++ code for style and robustness.
This commit is contained in:
@@ -60,7 +60,7 @@ int main() {
|
||||
for (int i = 0; i < length; i++) {
|
||||
int b;
|
||||
std::cin >> b;
|
||||
data.push_back((uint8_t)b);
|
||||
data.push_back(static_cast<uint8_t>(b));
|
||||
isAscii &= 0 < b && b < 128;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user