mirror of
https://github.com/status-im/QR-Code-generator.git
synced 2026-08-31 01:31:10 +00:00
Updated some C++ implementation code to be stricter by prepending std:: prefix for C standard library types.
This commit is contained in:
+2
-2
@@ -37,12 +37,12 @@ int BitBuffer::getBitLength() const {
|
||||
}
|
||||
|
||||
|
||||
std::vector<uint8_t> BitBuffer::getBytes() const {
|
||||
std::vector<std::uint8_t> BitBuffer::getBytes() const {
|
||||
return data;
|
||||
}
|
||||
|
||||
|
||||
void BitBuffer::appendBits(uint32_t val, int len) {
|
||||
void BitBuffer::appendBits(std::uint32_t val, int len) {
|
||||
if (len < 0 || len > 32 || (len < 32 && (val >> len) != 0))
|
||||
throw "Value out of range";
|
||||
if (len > INT_MAX - bitLength)
|
||||
|
||||
Reference in New Issue
Block a user