mirror of https://github.com/python/cpython
bpo-31275: Small refactoring to silence a fall-through warning. (#3206)
This commit is contained in:
parent
9e1e6f528f
commit
138753c1b9
|
@ -807,15 +807,9 @@ jisx0213_encoder(const Py_UCS4 *data, Py_ssize_t *length, void *config)
|
||||||
case 2: /* second character of unicode pair */
|
case 2: /* second character of unicode pair */
|
||||||
coded = find_pairencmap((ucs2_t)data[0], (ucs2_t)data[1],
|
coded = find_pairencmap((ucs2_t)data[0], (ucs2_t)data[1],
|
||||||
jisx0213_pair_encmap, JISX0213_ENCPAIRS);
|
jisx0213_pair_encmap, JISX0213_ENCPAIRS);
|
||||||
if (coded == DBCINV) {
|
if (coded != DBCINV)
|
||||||
*length = 1;
|
|
||||||
coded = find_pairencmap((ucs2_t)data[0], 0,
|
|
||||||
jisx0213_pair_encmap, JISX0213_ENCPAIRS);
|
|
||||||
if (coded == DBCINV)
|
|
||||||
return MAP_UNMAPPABLE;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
return coded;
|
return coded;
|
||||||
|
/* fall through */
|
||||||
|
|
||||||
case -1: /* flush unterminated */
|
case -1: /* flush unterminated */
|
||||||
*length = 1;
|
*length = 1;
|
||||||
|
|
Loading…
Reference in New Issue