Simplified a bit of code.

pull/134/head
Project Nayuki 3 years ago
parent c7ab2582aa
commit 845eab6f36

@ -27,7 +27,6 @@
#include <cstdlib>
#include <cstring>
#include <sstream>
#include <stdexcept>
#include <utility>
#include "qrcodegen.hpp"

@ -456,7 +456,7 @@ impl QrCode {
}
data << 12 | rem // uint18
};
assert!(bits >> 18 == 0, "Assertion error");
assert_eq!(bits >> 18, 0, "Assertion error");
// Draw two copies
for i in 0 .. 18 {

Loading…
Cancel
Save