mirror of
https://github.com/status-im/QR-Code-generator.git
synced 2026-08-31 01:31:10 +00:00
In C++ version, fixed all remaining implicit integer signedness conversions with the help of GCC's "-Wsign-conversion" and "-Wconversion".
This commit is contained in:
@@ -155,7 +155,7 @@ static void doSegmentDemo() {
|
||||
for (int c : kanjiChars)
|
||||
bb.appendBits(static_cast<std::uint32_t>(c), 13);
|
||||
const QrCode qr5 = QrCode::encodeSegments(
|
||||
{QrSegment(QrSegment::Mode::KANJI, kanjiChars.size(), bb)},
|
||||
{QrSegment(QrSegment::Mode::KANJI, static_cast<int>(kanjiChars.size()), bb)},
|
||||
QrCode::Ecc::LOW);
|
||||
printQr(qr5);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user