warning--

This commit is contained in:
taipanromania 2009-01-15 09:06:13 +00:00
parent b8240d3d76
commit e13b2cbd5e

View File

@ -39,6 +39,7 @@ QRcode *encode(int security, int size, const unsigned char *intext, int kanji)
hint = QR_MODE_8;
}
level = QR_ECLEVEL_L;
if((security >= 1) && (security <= 4)) {
switch (security) {
case 1: level = QR_ECLEVEL_L; break;
@ -46,8 +47,6 @@ QRcode *encode(int security, int size, const unsigned char *intext, int kanji)
case 3: level = QR_ECLEVEL_Q; break;
case 4: level = QR_ECLEVEL_H; break;
}
} else {
level = QR_ECLEVEL_L;
}
if((size >= 1) && (size <= 40)) {